How can I delete a file that is in use by another process?

前端 未结 6 672
野性不改
野性不改 2020-12-10 05:34

When I try to delete a file occurs the following exception:

The process cannot access the file \'\' because it is being used by another process.<

6条回答
  •  佛祖请我去吃肉
    2020-12-10 06:22

    There is no way to delete a file that's currently being used by another process. You have to close whatever program has that file open first, before you can delete it.

    If you don't already know which program that is, you can figure it out using Handle or Process Explorer.

提交回复
热议问题