Simple batch file

  Chrissib 13:53 05 Jul 2009
Locked

Hi, having lost my rank and multiplayer details a number of times, I am trying to write a batch file to copy the player data to a backup directory, but each time I try, I get an error, either file not found or invalid number of parameters...

I am writing a batch file to use 'xcopy', with source directory 'c:\path\players' to destination 'c:\path\backup\players'

expecting all files in the source 'players' directory to be written to the 'backup\players' directory. But when I run the batch file, I get the errors above.

Can anyone suggest the correct syntax please.

  wolfie3000 05:08 06 Jul 2009

In the batch file have you tried using the file extension?

c:\path\players.cfg' to destination 'c:\path\backup\players.cfg'


Replace the .cfg to what ever the file extension is.

  Rigga 08:12 06 Jul 2009

try
xcopy c:\path\players\*.* c:\path\backup\players\*.* /E

Should work.
HTH. R.

  Rigga 08:13 06 Jul 2009

P.S. if the path has spaces in it you must use quotes. like..
xcopy "c:\path\players\*.*" "c:\path\backup\players\*.*" /E

R.

  Chrissib 14:50 06 Jul 2009

thanks all

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

OnePlus 5 review

Alice Saey's mesmerising animation for Dutch singer Mark Lotterman

iPad Pro 10.5in (2017) review

Comment booster votre iPhone ?