The online racing simulator
batch file ?
(4 posts, started )
batch file ?
I am looking to create a batch file to start all my LFS servers at once, currently I have to start them all manually, then run LFSlapper for each one ....

Currently I have four servers running......

C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe
C:\Program Files (x86)\LFS_S2_DEDI_Z 2\LFS.exe
C:\Program Files (x86)\LFS_S2_DEDI_Z 3\LFS.exe
C:\Program Files (x86)\LFS_S2_DEDI_Z 4\LFS.exe

Then I start LFS lapper scripts for each one using desktop shortcuts, containing the command lines .....

C:\LFSLapper\bin\LFSLapper.exe C:\LFSLapper\bin\LFSLapper.lpr
C:\LFSLapper2\bin\LFSLapper.exe C:\LFSLapper2\bin\LFSLapper.lpr
C:\LFSLapper3\bin\LFSLapper.exe C:\LFSLapper3\bin\LFSLapper.lpr
C:\LFSLapper4\bin\LFSLapper.exe C:\LFSLapper4\bin\LFSLapper.lpr


Also I manually have to set /vote=yes for all the servers ....


If someone could show me how to do this by creating a batch file I would be very grateful !! I have tried myself but with no luck.

Quote from gaz_az :I am looking to create a batch file to start all my LFS servers at once, currently I have to start them all manually, then run LFSlapper for each one ....

Currently I have four servers running......

C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe
C:\Program Files (x86)\LFS_S2_DEDI_Z 2\LFS.exe
C:\Program Files (x86)\LFS_S2_DEDI_Z 3\LFS.exe
C:\Program Files (x86)\LFS_S2_DEDI_Z 4\LFS.exe

Then I start LFS lapper scripts for each one using desktop shortcuts, containing the command lines .....

C:\LFSLapper\bin\LFSLapper.exe C:\LFSLapper\bin\LFSLapper.lpr
C:\LFSLapper2\bin\LFSLapper.exe C:\LFSLapper2\bin\LFSLapper.lpr
C:\LFSLapper3\bin\LFSLapper.exe C:\LFSLapper3\bin\LFSLapper.lpr
C:\LFSLapper4\bin\LFSLapper.exe C:\LFSLapper4\bin\LFSLapper.lpr


Also I manually have to set /vote=yes for all the servers ....


If someone could show me how to do this by creating a batch file I would be very grateful !! I have tried myself but with no luck.


@echo off
start C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe
/vote=yes /cfg=path_to_setup.cfg
start C:\Program Files (x86)\LFS_S2_DEDI_Z 2\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\Program Files (x86)\LFS_S2_DEDI_Z 3\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\Program Files (x86)\LFS_S2_DEDI_Z 4\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\LFSLapper\bin\LFSLapper.exe C:\LFSLapper\bin\LFSLapper.lpr
start C:\LFSLapper2\bin\LFSLapper.exe C:\LFSLapper2\bin\LFSLapper.lpr
start C:\LFSLapper3\bin\LFSLapper.exe C:\LFSLapper3\bin\LFSLapper.lpr
start C:\LFSLapper4\bin\LFSLapper.exe C:\LFSLapper4\bin\LFSLapper.lpr
pause
Quote from Shadowww :@echo off
start C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\Program Files (x86)\LFS_S2_DEDI_Z 2\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\Program Files (x86)\LFS_S2_DEDI_Z 3\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\Program Files (x86)\LFS_S2_DEDI_Z 4\LFS.exe /vote=yes /cfg=path_to_setup.cfg
start C:\LFSLapper\bin\LFSLapper.exe C:\LFSLapper\bin\LFSLapper.lpr
start C:\LFSLapper2\bin\LFSLapper.exe C:\LFSLapper2\bin\LFSLapper.lpr
start C:\LFSLapper3\bin\LFSLapper.exe C:\LFSLapper3\bin\LFSLapper.lpr
start C:\LFSLapper4\bin\LFSLapper.exe C:\LFSLapper4\bin\LFSLapper.lpr
pause

Thanks - still not working properly though. I had to put " " around the directory to get it to recognise the spaces e.g.....

start "C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe"

And it now keeps saying invalid syntax for

/vote=yes

and for ......

/cfg="C:\Program Files (x86)\LFS_S2_DEDI_Z 2\setup.cfg"
Quote from gaz_az :Thanks - still not working properly though. I had to put " " around the directory to get it to recognise the spaces e.g.....

start "C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe"

And it now keeps saying invalid syntax for

/vote=yes

and for ......

/cfg="C:\Program Files (x86)\LFS_S2_DEDI_Z 2\setup.cfg"

it must be
start "C:\Program Files (x86)\LFS_S2_DEDI_Z\LFS.exe" "/vote=yes /cfg=path_to_cfg.cfg"

Look closely at the "s!

batch file ?
(4 posts, started )
FGED GREDG RDFGDR GSFDG