@echo off
echo.
echo CTRL-C to cancel.
echo.
:: Get user input
echo Enter the path to the VMF without extention (E.g: C:\maps\gm_construct)
set /p MAPNAME=and then press enter:
:: Vproject is the mod folder location.
:: Vmfdir is where the map's vmf is located.
set VPROJECT=C:\anon-beta\hl2
:: Compiles the map.
"C:\anon-beta\bin\vbsp.exe" "%MAPNAME%.vmf"
"C:\anon-beta\bin\vvis.exe" "%MAPNAME%.vmf"
"C:\anon-beta\bin\vrad.exe" "%MAPNAME%.vmf"
:: Copies the compiled BSP to %VPROJECT%'s maps folder.
copy "%MAPNAME%.bsp" "%vproject%\maps\"
:: This allows you to read the compile log.
pause