w10install/tools/pbc.cmd

16 lines
256 B
Batchfile
Raw Normal View History

2021-01-10 15:49:37 +01:00
@echo off
IF %1.==. GOTO USAGE
2021-02-27 15:51:47 +01:00
rem removing extension ...
set BASENAME=%~n1
rem adding extension again ...
set SOURCEFILE=%BASENAME%.pb
2021-01-10 15:49:37 +01:00
2021-02-27 15:51:47 +01:00
pbcompiler /EXE %BASENAME%.exe /CONSOLE %SOURCEFILE%
2021-01-10 15:49:37 +01:00
GOTO END
:USAGE
echo "usage: %0 <PureBasic SOURCEFILE>"
:END