Add run-online.bat

This commit is contained in:
Fierelier 2022-06-22 07:30:34 +02:00
parent 30b007447d
commit ca64aaad7e
1 changed files with 16 additions and 0 deletions

16
run-online.bat Normal file
View File

@ -0,0 +1,16 @@
@echo off
setlocal enabledelayedexpansion
cd /d "%~dp0"
set path=%cd%\path;%path%
REM Location to your py.exe/python.exe - If the Python launcher is installed (fairly likely), py should suffice.
REM If Python does not launch, set this to the full path if your python.exe, like so:
REM set pyexe=C:\Program Files\Python38\python.exe
set pyexe=py
echo WARNING! This will apply opus-nt to your currently running OS.
pause
advancedrun /exefilename "cmd.exe" /commandline '/c "set path=%path% & call "%pyexe%" run.py online"' /startdirectory "%cd%" /runas 4 /waitprocess 1 /run
advancedrun /exefilename "cmd.exe" /commandline '/c "set path=%path% & call "%pyexe%" run.py online modpath=mods-trustedInstaller"' /startdirectory "%cd%" /runas 8 /waitprocess 1 /run
advancedrun /exefilename "cmd.exe" /commandline '/c "set path=%path% & call "%pyexe%" run.py online modpath=mods-online"' /startdirectory "%cd%" /runas 4 /waitprocess 1 /run
pause