Article ID: 192808 - View products that this article applies to.
This article was previously published under Q192808
When you type either of the following commands at a command prompt, you may receive an "Invalid Path, 0 Files Copied" error message:
This behavior can occur if the "Prevent MS-DOS-based programs from detecting Windows" check box is selected in the Advanced Program Settings dialog box in the properties for the .pif file for the command prompt you are using.
To resolve this issue, follow these steps:
Method 1Map a network drive pointing to the share you want to use by either:
Method 2Use the COPY command instead the XCOPY or XCOPY32 command. When you use the COPY command, you can use Universal Naming Convention (UNC) paths to define the server you want to use. Note that the COPY command cannot copy folders within the selected folder.
This behavior occurs because Xcopy.exe and Xcopy32.exe are MS-DOS-based programs, but the network redirector needed to broadcast the UNC request is a Windows-based program. The network redirector cannot be accessed by the command prompt if the "Prevent MS-DOS-based programs from detecting Windows" setting is enabled.
The COPY command does work in this case because the COPY command is an internal Command.com command, instead of a program running on top of Command.com. Therefore, the COPY command can use the network redirector.
Contact us for more help
Connect with Answer Desk for expert help.