IOException: The process cannot access the file 'file path' because it is being used by another process

前端 未结 10 2052
陌清茗
陌清茗 2020-11-22 00:13

I have some code and when it executes, it throws a IOException, saying that

The process cannot access the file \'filename\' because it

10条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 00:24

    I got this error because I was doing File.Move to a file path without a file name, need to specify the full path in the destination.

提交回复
热议问题