
January 13th, 2004, 11:34 AM
|
Sergeant
|
|
Join Date: Dec 2003
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: auto-save feature ? (within dom2 or external program)
Quote:
Originally posted by mercurycs:
Having trouble with batch files,
ok, my batch file looks like this(all on one line)
copy C:\Program Files\dominions2\virtue\*.* C:\Program Files\dominions2\virtue\bak
I get a "too many parameters" error. I believe it is because dos is reading the space between "program" and "files" and it is messing it all up. How do you put in a directory that has a space in it without dos thinking it is a new command? or maybe something else is wrong with my batch file????
You know, don't use dos for hmmmmmmm...8 or 9 years and you even forget the basics.
|
Put "" around your names :
copy "C:\Program Files\dominions2\virtue\*.*" "C:\Program Files\dominions2\virtue\bak\"
this should work. I also added a \ at the end, to make sure copy doesn't bundle all your files into one file named bak, but puts them in a subfolder named bak.
Another solution would be to put your batch file in your virtue subfolder, and just do :
copy *.* bak\
|