JSI Tip 0829. BUG: Copying mixed LFN and SFN can lead to lost files.

Jerold Schulman

November 10, 1998

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you copy mixed long and short files names using Copy, Xcopy, and Windows NT Explorer, all files may not be present in the destination folder.

If a file with a LFN is copied and it generates a new SFN in the destination folder, it may be overwritten by an existing file in the source folder with the same name.

Q195144 explains the problem and shows an example.

The article explains that the "problem with Copy and Xcopy is by design" but a non-public fix for Windows NT Explorer is available from Microsoft Support (you must call).

You can also work around this feature by implementing tip 026, if your 16bit applications can open LFNs.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like