Maanu
Maanu

Reputation: 5203

Unlock Files for deletion

I am automating testing with test complete and CCNet. I am getting the error message "process cannot access the file because it is being used by another process" while deleting some folders.

Is there any tools which can be used to unlock the file? I need to automate the unlock operation from CCnet

Upvotes: 2

Views: 9090

Answers (2)

The Chairman
The Chairman

Reputation: 7187

Haven't tried it myself but Unlocker might solve your problem. According to the FAQ it has a CLI:

  • Can Unlocker be run in command line? Yes! Unlocker -H for command line options.

Upvotes: 3

CR0SS0V3R
CR0SS0V3R

Reputation: 336

Open task manager (ctrl + alt + del keys, select task manager), and see if you can find the name of your most recent application. If you find the application still running, but not visible, that means it switched to a background process, and likely has a bug/infinite loop. End the program task if you find it (you may very well find several) and that should clear up an file-IO errors. Hopefully this helped!

Upvotes: -1

Related Questions