Windows BAT Files

Notes on testing the latest builds of MapTool

Moderators: dorpond, trevor, Azhrei

Post Reply
User avatar
Lord.Ashes
Dragon
Posts: 350
Joined: Wed Jul 03, 2013 5:58 am

Windows BAT Files

Post by Lord.Ashes »

If MapTool 1.3.b90 will have the option of using BAT files, on Windows clients, to start MapTool (as was the case in b89) then the BAT file can be modified to the following code:

Code: Select all

for %%t in (maptool-*.jar) do javaw -Xmx1024M -Xss512K -jar %%t run
or

Code: Select all

for %%t in (maptool-*.jar) do start javaw -Xmx1024M -Xss512K -jar %%t run
Spoiler
The second version adds start
As long as there is only one JAR file starting with maptool in the directory it will launch it regardless of the version (i.e. this BAT file will work equally well for unofficial modded MapTool versions). The first version of the BAT file code (above) will open a command prompt and keep it open while MapTool is running as it did in the b89 version of the BAT file. The second version of the BAT file code (above) starts up MapTool but does not wait for it to finish before continuing on with the BAT file. Since the call to start MapTool is the only command in the BAT file, this causes the BAT file to complete and thus close the command prompt window.
"We often compare ourselves to the U.S. and often they come out the best,
but they only have the right to bare arms, while we have the right to bare breasts"
The Right To Bare Breasts by Bowser & Blue

Post Reply

Return to “Testing”