Jump to content

FileDelete across network


Recommended Posts

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?

Link to comment
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
Link to comment
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

Link to comment
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
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...