This behavior can occur if the "Prevent MS-DOS-based programs fromdetecting Windows" check box is selected in the Advanced Program Settingsdialog box in the properties for the .pif file for the command prompt youare using.
To resolve this issue, follow these steps:
Right-click the shortcut (.pif file) you use to start the command prompt, and then click Properties.
On the Program tab, click Advanced.
Click to clear the "Prevent MS-DOS-based programs from detecting Windows" check box, and then click OK.
If you do not want to clear the "Prevent MS-DOS-based programs fromdetecting Windows" check box (because you need this setting enabled), youmay be able to use one of the following workarounds:
Map a network drive pointing to the share you want to use by either:
Browse to the share from which you want to copy files in Network Neighborhood, right-click the share, click Map Network Drive, click the drive letter you want to map to that share, and then click OK.
Click Start, and then click Run. Type "\\<server>" (without quotation marks), where <server is the name of the server containing the share you want to use, and then click OK. In the window that opens, right- click the share you want to use, and then click Map Network Drive. Click the drive letter you want to use, and then click OK.
Then, use the XCOPY or XCOPY32 command with the driver letter of themapped network drive.
Use the COPY command instead the XCOPY or XCOPY32 command. When you usethe COPY command, you can use Universal Naming Convention (UNC) paths todefine the server you want to use. Note that the COPY command cannot copyfolders within the selected folder.
This behavior occurs because Xcopy.exe and Xcopy32.exe are MS-DOS-basedprograms, but the network redirector needed to broadcast the UNC requestis a Windows-based program. The network redirector cannot be accessed bythe command prompt if the "Prevent MS-DOS-based programs from detectingWindows" setting is enabled.
The COPY command does work in this case because the COPY command is aninternal Command.com command, instead of a program running on top ofCommand.com. Therefore, the COPY command can use the network redirector.