用movefile移文件夹
说是The process cannot access the file because it is being used by another process.
但是好像没别的东西在用这个文件夹或里面的文件啊
程序里会用到这个文件夹的也只有findfirstfile, findnextfile, creatdirectory,没有文件流
不明白是为什么。。。
...全文
25077打赏收藏
movefile失败,返回错误代码32
用movefile移文件夹 说是The process cannot access the file because it is being used by another process. 但是好像没别的东西在用这个文件夹或里面的文件啊 程序里会用到这个文件夹的也只有findfirstfile, findnextfile, creatdirectory,没有文件流 不明白是为什么。。。
[Quote=引用 6 楼 zhouzuoji 的回复:]
The MoveFile function will move (rename) either a file or a directory (including its children) either in the same directory or across directories. The one caveat is that the MoveFile function will fail on directory moves when the destination is on a different volume.
The MoveFile function will move (rename) either a file or a directory (including its children) either in the same directory or across directories. The one caveat is that the MoveFile function will fail on directory moves when the destination is on a different volume.