“the process cannot access the file because it is being used by another process” when trying to delete file

前端 未结 4 1197

when deleting files one by one error is generated as \"the process cannot access the file \' because it is being used by another process when trying to delete file\"

cod

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-21 19:21

    You will not be able to delete any file when is is locked by another process.

    You first have to find out which process locks the file.
    This is possible with SysInternals ProcessExplorer. Use the "Find handle or DLL" function.

提交回复
热议问题