View Single Post
  #27  
Old April 11th, 2004, 12:24 PM
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?

Ok, found a good way for win9x, don't have that os so I can't test it (but it works ok on my win XP):

code:
   @echo off >NULL
if not [%1]==[] goto Okay
echo Syntax: %0 Number
goto End
:Okay

if [%2]==[::] goto 2nd time around
if [%3]==[::] goto 3rd time around
if [%4]==[::] goto 4th time around
if [%5]==[::] goto 5th time around
%comspec% /e:2048 /c %0 %1 ::
goto End
:2nd time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %%v ::
goto End
:3rd time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %2 %%v ::
goto End
:4th time around
for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %2 %3 %%v ::
goto End
:5th time around
echo %2%3%4
if [%1]==[%4] exit
if [%1]==[%3%4] exit
if [%1]==[%2%3%4] exit
start /w Gamepath\Se4.exe "Game" "password" "0" "modname"
:End

Call it with
AUTO 12 (or whatever you've saved it as!)
for 12 loops

It's a nice self calling batch file.

Found this nice solution here:
http://www.pressroom.com/~tglbatch/counting.html

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