View Single Post
  #26  
Old April 11th, 2004, 11:27 AM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default Re: SE4Batch status?

Yep, that don't work in win9x.

a more bothersame method is this:

code:
@echo off >NULL
set n=%1
set i=
:loop
set i=%i%!
echo Running automated turn number %counter% now.
Gamepath\Se4.exe "Game" "password" "0" "modname"
if %i%==%n% goto ****
goto loop
ut

and then start it with test !!!!!!!!!!!!!!!!!!
and one ! for each loop, not good for long loops, in that case there are two ways.
One is to use nestled loops as that one above, for example a H for hundreds a T for tens and a ! for ones, ie
running a loop 134 times would call the batch file:
test HTT!!!
and then you make three loops within each other.

A better way if you have the FIND.EXE command on your computer is to make a new line in a temporary counter file for each loop turn and then count the lines with the FIND command, redoing the loop until the number of lines matches the parameter sent with the command line.

[ April 11, 2004, 11:26: Message edited by: Ruatha ]
Reply With Quote