Last active
December 24, 2015 06:09
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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