The limitations have been pulled from Windows SDK header file
are only supported under Windows 2000 and later and the file must be on a volume that is NTFS 5.0 or later.
|This is sample code. Add error handling and adjust to your requirements as necessary.|
The CopyFile() and MoveFile() WIN API functions preserve the case of the name for the destination file. Alternatively, WSH can be used.
The source and destination file names should include the directory name in both cases.
Note 1 A Copy operation will not change file name case when destination file already exists (overwritten).
Note 2 The WinApiErrMsg is used to retrieve Windows API error message in case of error.