Microsoft KB Archive/182820

{|
 * width="100%"|

DOC: Using Wildcard Extension with SHFileOperation

 * }

Q182820

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0
 * Microsoft Windows 95
 * Microsoft Internet Explorer (Programming) versions 4.0, 4.01

-

SUMMARY
In earlier versions of the Platform SDK documentation for SHFILEOPSTRUCT, there is nothing that specifically states that wildcards cannot be used for destination. In fact, version 4.00 of the shell did allow the use of wildcards in the destination string. Later versions of the shell are stricter about this and will display an error message with the following text:

The source and destination filenames are the same.

In addition, no files will be moved or copied.

MORE INFORMATION
SHFileOperation was never designed to accept wildcards in the destination, however, some versions of the documentation for SHFILEOPSTRUCT do not exclude the use of wildcards. Later versions of the documentation do specifically exclude the use of wildcards in the destination.

Additional query words:

Keywords : _IK kbdocfix kbLib kbOSWinNT400 kbOSWin95 kbOSWin98 kbshell kbGrpDSShell

Issue type :

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch