PRB: File Names Truncated When Using SHFileOperation

ID: Q186152


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), on platform(s):
    • Windows NT
    • Windows 95
  • Microsoft Windows 2000


SYMPTOMS

When you use SHFileOperation to copy or move files, the destination file names are truncated to the 8.3 file name format. For example, the file name "New Document.temp" will be truncated to "NewDocum.tem".


CAUSE

The default behavior of SHFileOperation causes this problem. This behavior only occurs when you use a relative path for the destination.


RESOLUTION

Use a full path instead of a relative path for the destination.


STATUS

This behavior is by design.

Additional query words:

Keywords : kbLib kbNTOS400 kbSDKWin32 kbWinOS95 kbGrpShell
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.