Code:
@echo off
echo [c] Compile
echo [cm] Multi-Compile
echo [d] Decompile
echo [dm] Multi-Decompile
set /p cord=Choose an option:
cls
if '%cord%'=='cm' goto comp
if '%cord%'=='dm' goto dec
if '%cord%'=='c' goto comps
if '%cord%'=='d' goto decs
echo %cord% is not a valid option!
goto end
:comp
for /D %%i in (./*) do CALL :checkmrs "%%i" c Compile
goto end
:dec
for %%i in (./*.mrs) do CALL :checkmrs "%%i" d Decompile
goto end
:comps
set /p filechoice=Enter folder name:
mrs.exe c %filechoice%
goto end
:decs
set /p filechoice=Enter file na
goto end
:checkmrs
set /p choice=%3 %1 [y/n]:
if '%choice%'=='y' mrs.exe %2 %1
cls
goto :eof
:end
cls
That will do as a single/multi compiler/decompiler. Only works for the current folder, not subfolders. :D
---
Original Post
Code:
@echo off
for /r %%i in (./*.mrs) do CALL :checkmrs "%%i"
goto end
:checkmrs
set /p choice=Decompile %1 [y/n]:
if '%choice%'=='y' mrs.exe d %1
cls
goto :eof
:end
cls
echo Decompiling complete.
That loops through all mrs files in the folder and asks you if you want to decompile them.
Easy enough to make it for compiling too :)