XCOPY command problem

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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".
 
Back
Top