Delete Directory
-
I have a problem deleting a directory, when that directory is already open by another application (like WExplorer, or TCommander). I get the well known exception ".. the process cannot access the file because is used by another application". How can I get around this ? (TCommander as far as I've seen can delete a dir, even if the dir is open by explorer, so something can be done...). Thanks in advance to all that may give me some info on this problem.
-
I have a problem deleting a directory, when that directory is already open by another application (like WExplorer, or TCommander). I get the well known exception ".. the process cannot access the file because is used by another application". How can I get around this ? (TCommander as far as I've seen can delete a dir, even if the dir is open by explorer, so something can be done...). Thanks in advance to all that may give me some info on this problem.
You would have to setup a try catch statement to catch when the exception occurs and see what the program can do to fix the issue, and if it can't you could possibly tell the user which program is causing the error and needs to be closed.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]