w10install/tools/pbc.cmd
2021-03-18 00:08:40 +01:00

22 lines
335 B
Batchfile

@echo off
IF %1.==. GOTO USAGE
rem remove extension ...
set BASENAME=%~n1
rem removing extension and get full path ...
set FULLBASE=%~dpn1
rem adding extension to fullbase again ...
set SOURCEFILE=%FULLBASE%.pb
pbcompiler /EXE %BASENAME%.exe /CONSOLE %SOURCEFILE%
GOTO END
:USAGE
echo "usage: %0 <PureBasic SOURCEFILE>"
:END