Microsoft KB Archive/186152

{|
 * width="100%"|

PRB: File Names Truncated When Using SHFileOperation

 * }

Q186152

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows 95
 * the operating system: Microsoft Windows NT
 * the operating system: 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 kbOSWinNT400 kbOSWin2000 kbSDKWin32 kbOSWin95 kbGrpDSShell

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch