xcopy troubles

By mrprimo55
May 22, 2006
  1. 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:
    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.
  2. Nodsu

    Nodsu TS Rookie Posts: 9,431

    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.
  3. mrprimo55

    mrprimo55 TS Rookie Topic Starter Posts: 32

    Thanks for the help, how to I tell it not to close on exit?
  4. N3051M

    N3051M TS Rookie Posts: 2,800

    right click into properties i think
  5. Nodsu

    Nodsu TS Rookie Posts: 9,431

    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.
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.