- Aug 9, 2000
- 11,911
- 0
- 76
I need help writing a simple batch file to copy "My Documents" to a new folder on the C:\drive.
mkdir "C:\Migration"
mkdir "C:\Migration\My Documents"
This creates the destination folders okay.
xcopy C:\Windows\Profiles\%username%\My Documents\ *.* /s "C:\Migration"
This line does nothing for me.
xcopy C:\Documents and Settings\%username%\My Documents\ *.* /s "C:\Migration"
And this line does nothing for me.
Batch files obviously are not my strong suit; I suspect my semantics are off. Any suggestions?
mkdir "C:\Migration"
mkdir "C:\Migration\My Documents"
This creates the destination folders okay.
xcopy C:\Windows\Profiles\%username%\My Documents\ *.* /s "C:\Migration"
This line does nothing for me.
xcopy C:\Documents and Settings\%username%\My Documents\ *.* /s "C:\Migration"
And this line does nothing for me.
Batch files obviously are not my strong suit; I suspect my semantics are off. Any suggestions?