Xcopy troubles

Status
Not open for further replies.

mrprimo55

Posts: 19   +0
hey everyone
here's the deal: im trying to copy my music from my c: drive to another hard drive (labeled f: ) by using xcopy. i made a batch file in notepad and saved it as backup.bat . the command in the batch file says:
Code:
xcopy c:\documents and settings\[I]username[/I]\my documents\my music\itunes\ f:\backups\ /s /e /r /f /h /i /c /k /y
this all seems fine to me, right? so when i click on the batch file to run it, the DOS screen flashes and then disappears. why is this happening and what can i do to fix it? thanks in advance for your help.
 
You need to quote pathnames containing spaces. xcopy "c:\Doc.....\itunes\" ...

You can run your batch file from a CMD window or tell in its properties not to close on exit.
 
The properties thing will only work for Windows 9x. You can put a "pause" command in the end of your file if you wish to keep the windows open in XP.
 
Status
Not open for further replies.
Back