19 lines
293 B
Batchfile
19 lines
293 B
Batchfile
@echo off
|
|
|
|
if "%~1"=="" goto detect
|
|
set file=%1
|
|
goto endif
|
|
:detect
|
|
for /F "tokens=1 delims=" %%A in ('dir /B /OD *.in') do set file=%%A
|
|
:endif
|
|
|
|
if "%~2"=="" goto default
|
|
set version=%2
|
|
goto endif2
|
|
:default
|
|
set version=Debug
|
|
:endif2
|
|
|
|
@echo on
|
|
%version%\codejam.exe < %file% | tee out.txt
|