The online racing simulator
Question about a batch file
(4 posts, started )
Question about a batch file
Hi,
I created a batch to start 2 apps, and they execute. So far so good.


start D:\LFS\extras\og_relay.py
start D:\LFS\extras\RevLimiter\LfsRevLimiter.0.9.exe

My problem is, that RevLimiter, if started by the batch, doesn't read his XML config file, but if it's started by me it runs perfect.

Hope you guys know the reason, because I have no clue why this is happening
#2 - STF
LfsRevLimiter.0.9.exe starts in the path of its parent, which in this case is the path of your start.bat(or w/e name). It tries to find the XML file in the directory it`s started from.

Following code should work:


start D:\LFS\extras\og_relay.py
cd D:\LFS\extras\RevLimiter\

[I]start D:\LFS\extras\RevLimiter\LfsRevLimiter.0.9.exe
[COLOR="Red"]or[/COLOR]
start LfsRevLimiter.0.9.exe[/I]

Edit: When you start it manually, it works because the process starts in the correct path containing the XML.
thank you very much, it works now

I had to add this to actually change from C to D, but it's nothing google can't tell me haha

cd [B]/D[/B] D:\LFS\extras\RevLimiter\

#4 - STF
Glad to have helped. :dazzersmi

Question about a batch file
(4 posts, started )
FGED GREDG RDFGDR GSFDG