Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xcopy

Status
Not open for further replies.

ArchonSoft

Programmer
Jan 20, 2003
35
CA
I use xcopy command to copy a data disk to another one: here is the script I use:
xcopy g: h: /c /q /s /e /k /r /h

if errorlevel 0 goto success

:success
echo Files were backup successfully!
goto exit

:exit

For some reasons the backup does'nt execute completely, some files are missing...

Someone got a solution?
 
To see what's going on, perhaps you ought to run the xcopy command manually, rather than the script, even pipe it to more (|more) to see each page as it scrolls, although you'll need to dispense with the /q. I always use the /v to verify. Why are you using both /s & /e since they have the opposite effect? Do you want "all" files copied each time, or just those that have been modified (in which case you'll want the /m switch)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top