View Full Version : xcopy: Invalid drive specification (W2K)
humbletech99
06-01-2006, 04:23 AM
when I do xcopy \\machine\share\path\dir d:\placehere /scyih
I get the following error:
Invalid drive specification
0 File(s) copied
However, this command works on some computers, just not others, and I can find no reason for the difference, these are all Windows 2000 or XP machines...
motoflop
06-02-2006, 10:46 AM
Do these simple tests on those machines where xcopy won't run:
dir \\machine\share\path\dir
dir d:\placehere
If dir command can see those directories then try to put xcopy swithes before other parameters:
xcopy /scyih \\machine\share\path\dir d:\placehere
Maybe some computers have different version of xcopy and that version doesn't understand if swithes at end of line.
jdharm
06-02-2006, 11:23 AM
Have you tried to map the server share to a drive letter first and then use the mapped drive with xcopy? Maybe xcopy is only wanting to work with logical drives and not UNC paths? Dunno why that would be necessary on some and not others...just throwing it out there as a workaround.
Josh
<a target="_blank" href=http://www.jdharm.com>www.jdharm.com</a>
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.