还有这个 When moving a directory, the destination must be on the same drive 如果移动目录,目标必须在同一个驱动器上
还有这个 MOVEFILE_REPLACE_EXISTING:If a file named lpNewFileName exists, the function replaces its contents with the contents of the lpExistingFileName file. This value cannot be used if lpNewFileName or lpExistingFileName names a directory. 意思是 MOVEFILE_REPLACE_EXISTING标记不能用于目录,楼主看MSDN不要只看一半啊
你这是权限不够造成的、、、
When moving a directory, the destination must be on the same drive
如果移动目录,目标必须在同一个驱动器上
MOVEFILE_REPLACE_EXISTING:If a file named lpNewFileName exists, the function replaces its contents with the contents of the lpExistingFileName file.
This value cannot be used if lpNewFileName or lpExistingFileName names a directory.
意思是 MOVEFILE_REPLACE_EXISTING标记不能用于目录,楼主看MSDN不要只看一半啊