Skip to content

Instantly share code, notes, and snippets.

@Au1st3in
Last active August 29, 2015 14:00
Show Gist options
  • Save Au1st3in/11128765 to your computer and use it in GitHub Desktop.
Save Au1st3in/11128765 to your computer and use it in GitHub Desktop.
Arma 3 Launcher
::User Set Variables
::Arma 3 Directory Name
@set ARMA3=Arma 3
::Arma 3 Launch Parameters
@set launchOptions=-high -noPause -noSplash
::Arma 3 Mods (@EXAMPLE1;@EXAMPLE2)
@set mods=
::DO NOT EDIT PAST THIS POINT
@setlocal enableextensions enabledelayedexpansion
@echo off
color 0f
cd ..\
if NOT EXIST !ARMA3!\ (
echo An error occured when trying to find the folder "!ARMA3!"
echo Edit the file and change the set ARMA3=
echo And add the name of your Arma 3 directory.
pause
exit
)
for /f %%a in ('echo.x') do if 1 EQU 1 (
set ARMA3=%%~dpa!ARMA3!
)
cd !ARMA3!
cd ..\..\..\
for /f %%a in ('echo.x') do set applaunch=%%~dpa
set appFile=!applaunch!steam.exe
set applaunch="!applaunch!steam.exe" -applaunch 107410
cd !ARMA3!
if "!applaunch!" == "" (
echo Error, applaunch value could not be set!
pause
exit
)
if NOT EXIST "!appFile!" (
echo Error, !appFile! could not be found!
pause
exit
)
echo ---------------------------
echo Arma 3 : !ARMA3!
echo ---------------------------
echo Exec... : !applaunch!
echo ---------------------------
echo Arma 3
echo ---------------------------
!applaunch! !launchOptions! "-mod=!mods!
pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment