Batch file to copy My Documents to External

October 7, 2010 at 20:21:58
Specs: Windows XP
I need to create a batch file to copy my documents to my external hard drive. I keep getting errors.

Can anyone help me?

xcopy C:\Documents and Settings\User Profile\My Documents*.* E:\


See More: Batch file to copy My Documents to External

Report •


#1
October 7, 2010 at 20:30:25
Besides the obvious, that a path with spaces needs to be in " ", what's the path to the files?


=====================================
Helping others achieve escape felicity

M2


Report •

#2
October 7, 2010 at 20:43:05
I want all the files in My Documents to either be copied to a file called "My Documents" on drive E:\ or all the files to in My Documents to be copied into the E:\ drive.

Report •

#3
October 8, 2010 at 00:17:07
Try:

@echo off
xcopy /Y C:\"Documents and Settings"\YourProfile\ E:\Backup
pause
exit

Happy is ONE who says I am an OttoMAN.


Report •

Related Solutions


Ask Question