Jump to content
SubSpace Forum Network

Recommended Posts

Posted (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 directly

copy 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 by Samapico
Posted

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"

Guest
This topic is now closed to further replies.
×
×
  • Create New...