Simple batch file

  Chrissib 13:53 05 Jul 09
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 09

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 09

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

Should work.
HTH. R.

  Rigga 08:13 06 Jul 09

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 09

thanks all

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

Sniper Elite 4 review: Headshotting Nazis has never felt so good

1995-2015: How technology has changed the world in 20 years

The Fresh New Fonts of 2017

WWDC 2017 dates: How to get WWDC 2017 tickets, when is WWDC 2017 and more details announced