Skip to content

Instantly share code, notes, and snippets.

@jocap
Last active December 24, 2015 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jocap/6755035 to your computer and use it in GitHub Desktop.
Save jocap/6755035 to your computer and use it in GitHub Desktop.
Arma + Sublime Text Development Environment Change all three of E:\Doccuments\Arma... to your Arma missions path. Make sure that your Sublime Text installation directory is in your PATH (add ;your_install_dir to Computer -> Properties -> Advanced -> Environment Variables -> PATH -> Edit)
@echo off
set /a c=1
setlocal ENABLEDELAYEDEXPANSION
for /f "usebackq delims=|" %%f in (`dir /b "E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions"`) do (
set files[!c!]=%%f
echo !c!, %%f
set /a c+=1
)
:Ask
set /P num=Please enter number:
if "%num%"=="" goto Ask
%SystemRoot%\explorer.exe "E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions\!files[%num%]!"
sublime_text "E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions\!files[%num%]!" > NUL
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment