opus-nt/run-online.bat
2022-06-22 07:42:27 +02:00

17 lines
998 B
Batchfile

@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.
echo On Windows 10, make sure to disable tamper protection.
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