Samapico Posted December 28, 2005 Report Posted December 28, 2005 (edited) I'm trying to write a VERY SIMPLE .bat file to update other XP User profile's media library... Copying the files from user Sam to user Alain. I have tried several things, but I always get an invalid syntax error when comes the time to move the file to the other folder (or copy it directly there) @echo off cd C:\Do!@#$%^&*ents and Settings\Sam\Local Settings\Application Data\Microsoft\Media Player copy CurrentDatabase_59R.wmdb Temp copy wmpfolders.wmdb Temp move C:\Do!@#$%^&*ents and Settings\Sam\Local Settings\Application Data\Microsoft\Media Player\Temp\*.* C:\Do!@#$%^&*ents and Settings\Alain\Local Settings\Application Data\Microsoft\Media Player PAUSE I also tried copying it directlycopy C:\Do!@#$%^&*ents and Settings\Sam\Local Settings\Application Data\Microsoft\Media Player\*.* C:\Do!@#$%^&*ents and Settings\Alain\Local Settings\Application Data\Microsoft\Media Player I'm no pro at DOS and its the first time I write a bat file... Oh, and I have tried doing all the same commands directly in the DOS command prompt and I get the same error, so it's not a problem with my bat file, but with my syntax... Can anyone help? I'm using XP pro Edited December 28, 2005 by Samapico
»SOS Posted December 28, 2005 Report Posted December 28, 2005 This should fix it: move "C:\Do!@#$%^&*ents and Settings\Sam\Local Settings\Application Data\Microsoft\Media Player\Temp\*.*" "C:\Do!@#$%^&*ents and Settings\Alain\Local Settings\Application Data\Microsoft\Media Player"
Samapico Posted December 29, 2005 Author Report Posted December 29, 2005 bleh thanks ... stupid quotes!
Recommended Posts