XCOPY command problem

G

Guest

I am trying to write a DOS batch file for backups and keep getting an Invalid
number of parameters in the error message. I want to copy all the files and
folders in the C:\Documents and Settings\User name folder to E:\User name.
Here is what I tried:

XCOPY C:\Documents and Settings\Tom e:\TomBack /S

and I get the error message.
Any suggestions?
Thank you
 
S

Shenan Stanley

Wylie said:
I am trying to write a DOS batch file for backups and keep getting an
Invalid number of parameters in the error message. I want to copy all
the files and folders in the C:\Documents and Settings\User name
folder to E:\User name. Here is what I tried:

XCOPY C:\Documents and Settings\Tom e:\TomBack /S

and I get the error message.

xcopy "c:\documents and settings\tom" "e:\tomback" /E /Q /H /R /O /Y

If you are doing this to backup your profile, you could just backup new
files/changed files:

xcopy "c:\documents and settings\tom" "e:\tomback" /E /Q /H /R /O /Y /D

Seems like a little overkill.. Since backing up the entire profile usually
will not help you. I would personally get more specific and just backup "My
Documents" and maybe "Desktop".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

xcopy help 1
Xcopy problem 2
xcopy file with time stamp 1
XCopy version needed help 9
xCopy and Vista Profiles 12
XCOPY - Insufficient Memory Error 5
XCOPY 2
xcopy exclude switch 2

Top