Jump to content

Automatically update batch file to run osbot


Dreamliner

Recommended Posts

Hi devs/others.

I like to run my osbot client with the command window open to look for exceptions that aren't thrown in the clients console.

I typically find myself getting frustrated having to update my batch file so often so I made this.

 

@echo off
SET /a i=100

:loop
IF %i%==0 GOTO END
if exist ".\osbot 1.7.%i%.jar" GOTO run
SET /a i=%i%-1
GOTO LOOP

:run
java -jar ".\osbot 1.7.%i%.jar"
pause

:end
echo No osbot files found.  Please contact Dreamliner on OsBot forums.
pause
Copy and paste this into a text document and save it as a batch file. You can now run osbot up to 1.7.100 (can change if need be god forbid..) without needing to change a thing!

this must be run from the same directory you save osbot jars in

Edited by dreamliner
  • Like 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...