Unlock Files for deletion

自古美人都是妖i 提交于 2019-12-01 07:25:50

问题


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


回答1:


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.



回答2:


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!



来源:https://stackoverflow.com/questions/9155926/unlock-files-for-deletion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!