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

前端 未结 6 649
野性不改
野性不改 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:32

    Another way is to find all open handles to the file and close them forcibly.

    Works nice for you, bad for any apps which were using the file.

    Could try that in UI with SysInternals ProcessExplorer.

提交回复
热议问题