Computing.Net > Forums > Disk Operating System > xcopy batch help

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

Reply to Message Icon

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.



Sponsored Link
Ads by Google

Response Number 1
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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: xcopy batch help

More batch help www.computing.net/answers/dos/more-batch-help/11371.html

Batch Help www.computing.net/answers/dos/batch-help/364.html

'smart' FTP batch help www.computing.net/answers/dos/smart-ftp-batch-help/11611.html