Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
xcopy batch help
Name: Tonto Date: August 9, 2004 at 03:55:41 Pacific OS: W2K CPU/Ram: P4/512
Comment:
I've written a batch file to copy certain folders from C to D drive but one particular one has me stumpted. Here is the example: xcopy "C:\Documents and Settings\All Users\Application Data\OLYMPUS\Camedia Master 4\Album\Digital photos" "D:\Digital Photos" S/D/I/Y The error message is - invalid number of parameters I've tried different number of permutations of the inverted commas but it still will not work. Can anyone provide me with a solution? Thanks in advance.
Name: Mechanix2Go Date: August 9, 2004 at 05:33:07 Pacific
Reply:
Hi,
I only jave two suggestions.
1. Add the trailing backslash, like this
xcopy "c:\doc\fold\"
2. Or the path is simply too long. In which case, you might make it work by changing directory to the souce folder before the xcopy. It's Mickey-Mouse, but it might help.
M2
Mechanix2Go@Golden-Triangle.com
0
Response Number 2
Name: IVO Date: August 9, 2004 at 05:38:58 Pacific
Reply:
It seems to me you just badly wrote the command switches forgetting the leading slash before the "S", so replace with /S /D /I /Y.
0
Response Number 3
Name: jboy Date: August 9, 2004 at 07:38:55 Pacific
Reply:
Yes - parameters are switches (even in Win2K)
I'm just looking for clues at the scene of the crime
0
Response Number 4
Name: Tonto Date: August 9, 2004 at 14:30:25 Pacific
Reply:
Thank you all, especially IVO and jboy, it worked. I actually had the slash infront of the S for the other xcopy commands but inexplicably left it out for this one AND could not see it even though it was there staring me in the face. Thanks again.
0
Response Number 5
Name: jboy Date: August 9, 2004 at 16:26:37 Pacific
Reply:
Sometime's the obvious is hard to see ; )
Command lines can be pretty fussy.
I'm just looking for clues at the scene of the crime
Summary: Just use the wonderfull command called XCOPY with the option /D this option will only copy newer files, and it can handle subdirs and even systemfiles ... soo much stuff the regular 'explorer' in wind...
Summary: I need help with a batch file how do I do the following 1 Provid a list of files in any drive or dir that I want. 2 Display the contents of any file type 3 Provide outputs to the printer, screen or a ...
Summary: I saw a script for batching commands to an ftp server on http://www.batch.hpg.ig.com.br/ (excellent site) I'm attempting to do this very same thing, and the script seems to work great, but what happen...