According to Microsoft Knowledge Base Article - 193070
If you call MoveFileEx with the MOVEFILE_REPLACE_EXISTING flag to rename a file to the same, current name or to a name that only differs in case, MoveFileEx might fail with error 2 (ERROR_FILE_NOT_FOUND) and delete the file.
This only happens when you get access to the file using a UNC path name or through a mapped drive.
Does this mean that I can not rename a file C:\b\abc.ACK.tmp to C:\b\abc.ACK ? using MoveFileEx with the MOVEFILE_REPLACE_EXISTING on Windows NT?
Thanks
Milton
If you call MoveFileEx with the MOVEFILE_REPLACE_EXISTING flag to rename a file to the same, current name or to a name that only differs in case, MoveFileEx might fail with error 2 (ERROR_FILE_NOT_FOUND) and delete the file.
This only happens when you get access to the file using a UNC path name or through a mapped drive.
Does this mean that I can not rename a file C:\b\abc.ACK.tmp to C:\b\abc.ACK ? using MoveFileEx with the MOVEFILE_REPLACE_EXISTING on Windows NT?
Thanks
Milton