sujag Posted June 8, 2009 Posted June 8, 2009 I am looking to use filedelete to remove a file from across a network path from a server. FileDelete("\\servername\filepath\file"); Would the above be a good way to perform the task or is there a better way?
PsaltyDS Posted June 8, 2009 Posted June 8, 2009 I am looking to use filedelete to remove a file from across a network path from a server.FileDelete("\\servername\filepath\file");Would the above be a good way to perform the task or is there a better way?Have you tried it? Did it work? Why the hesitation and uncertainty? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
sujag Posted June 9, 2009 Author Posted June 9, 2009 I have tried it. It worked for me testing but once I placed into production it failed several times with no unknown error. I am sending the error to the eventlog but it is not detailed enough to pick up what is going on. I was just curious this worked or if there was a better way.Have you tried it? Did it work? Why the hesitation and uncertainty?
PsaltyDS Posted June 9, 2009 Posted June 9, 2009 I have tried it. It worked for me testing but once I placed into production it failed several times with no unknown error.Does that mean it works correctly intermittently and/or fails intermittently? The most probable issue is still authentication/permissions. Less likely, but still possible, would be client or server-side networking issues.No way to help you without more details on your symptoms. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
nbtech Posted June 9, 2009 Posted June 9, 2009 It sounds to me like an authentication/permissions issue as well. Maybe the account you're testing it from has the rights to delete the file, but the account you're using doesn't. Or are you testing it via a share on the same computer you're using and then trying it across the network and it fails then? Would still likely be an authentication/permissions issue though.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now