@echo off
if not exist gravis.ini goto doneg
	lh ultramid
:doneg
if exist war2.ini goto doneinit
	echo 1 >war2.ini
	install
:doneinit

if "%1" == ""    goto startit
goto donestart
:startit
start
if NOT ERRORLEVEL 0 goto exit
:donestart

warlord2 %1 %2 %3 %4
if not exist gravis.ini goto doneg2
	ultramid -F
:doneg2
:exit

