Added a batchscript for utility.exe
This commit is contained in:
48
utility.cmd
Normal file
48
utility.cmd
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
@echo off
|
||||||
|
title OpenRA.Utility.exe
|
||||||
|
:choosemod
|
||||||
|
echo ----------------------------------------
|
||||||
|
echo.
|
||||||
|
call OpenRA.Utility.exe
|
||||||
|
echo Enter --exit to exit
|
||||||
|
set /P mod=Please enter a modname: OpenRA.Utility.exe
|
||||||
|
if /I "%mod%" EQU "--exit" (exit)
|
||||||
|
if /I "%mod%" EQU "modchooser" (
|
||||||
|
echo.
|
||||||
|
echo Sorry, this mod isn't available at the moment!
|
||||||
|
echo.
|
||||||
|
goto choosemod
|
||||||
|
)
|
||||||
|
if /I "%mod%" EQU "ra" (goto help)
|
||||||
|
if /I "%mod%" EQU "td" (goto help)
|
||||||
|
if /I "%mod%" EQU "ts" (goto help)
|
||||||
|
if /I "%mod%" EQU "d2k" (goto help)
|
||||||
|
echo.
|
||||||
|
echo Unknown mod: %mod%
|
||||||
|
echo.
|
||||||
|
goto choosemod
|
||||||
|
:help
|
||||||
|
echo.
|
||||||
|
echo ----------------------------------------
|
||||||
|
echo.
|
||||||
|
echo OpenRA.Utility.exe %mod%
|
||||||
|
call OpenRA.Utility.exe %mod%
|
||||||
|
:start
|
||||||
|
echo.
|
||||||
|
echo ----------------------------------------
|
||||||
|
echo.
|
||||||
|
echo Script options:
|
||||||
|
echo --exit to exit
|
||||||
|
echo --help to view the help
|
||||||
|
echo --mod to choose a new mod
|
||||||
|
echo.
|
||||||
|
set /P command=Please enter a command: OpenRA.Utility.exe %mod%
|
||||||
|
if /I "%command%" EQU "--exit" (exit)
|
||||||
|
if /I "%command%" EQU "--help" (goto help)
|
||||||
|
if /I "%command%" EQU "--mod" (goto choosemod)
|
||||||
|
echo.
|
||||||
|
echo ----------------------------------------
|
||||||
|
echo.
|
||||||
|
echo OpenRA.Utility.exe %mod% %command%
|
||||||
|
call OpenRA.Utility.exe %mod% %command%
|
||||||
|
goto start
|
||||||
Reference in New Issue
Block a user