xcopy from batch

G

Guest

I want to copy all of the files and folders from c:\Works Documents to
c:\Backup. This has to be simple, but my command is not working:

xcopy c:\Works Documents c:\Backup

the batch file path is c:\batch.bat

please help.....thanks
 
P

Pegasus \(MVP\)

Paul said:
I want to copy all of the files and folders from c:\Works Documents to
c:\Backup. This has to be simple, but my command is not working:

xcopy c:\Works Documents c:\Backup

the batch file path is c:\batch.bat

please help.....thanks

Surround all names with double quotes if they have
embedded spaces, and add a backslash to "c:\backup".
A few appropriate switches might be beneficial.

xcopy /s /c /d /y "c:\Works Documents" c:\Backup\
 
G

Guest

thank you very much


Pegasus (MVP) said:
Surround all names with double quotes if they have
embedded spaces, and add a backslash to "c:\backup".
A few appropriate switches might be beneficial.

xcopy /s /c /d /y "c:\Works Documents" c:\Backup\
 

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

Top