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: 5,837   +6

    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: 19

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

    N3051M TS Evangelist Posts: 2,115

    right click into properties i think
  5. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    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

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...