forked from OpenRA/OpenRA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utility.cmd
42 lines (42 loc) · 1.05 KB
/
utility.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@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 /b)
if /I "%mod%" EQU "ra" (goto help)
if /I "%mod%" EQU "cnc" (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 /b)
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