Sign in to follow this  
Followers 0
sujag

FileDelete across network

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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?

:D


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

Share this post


Link to post
Share on other sites

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?

:D

Share this post


Link to post
Share on other sites

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.

:D


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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0