w10install/tools/pbc.cmd
Michael H.G. Schmidt 2a6e6dee1c restructured
2021-02-27 20:07:28 +01:00

16 lines
256 B
Batchfile

@echo off
IF %1.==. GOTO USAGE
rem removing extension ...
set BASENAME=%~n1
rem adding extension again ...
set SOURCEFILE=%BASENAME%.pb
pbcompiler /EXE %BASENAME%.exe /CONSOLE %SOURCEFILE%
GOTO END
:USAGE
echo "usage: %0 <PureBasic SOURCEFILE>"
:END