Hello:-),
I am working on a sql project for an xharbour application. I want to know how to pass a parameter via a batfile.
example
xc.bat:
CALL xSet.bat
echo "%hbdir%\bin\harbour %1 /n /w /i%fwdir%\include;%hbdir%\include %2" > xc.log
%hbdir%\bin\harbour %1 /p /n /w /i%fwdir%\include;%hbdir%\include %2 > comp.log
echo -O2 -I%hbdir%\include;%bcdir%\include %1.c > temp.bc
%bcdir%\bin\bcc32 -M -c @temp.bc
testfile.prg:
I was thinking that I could do something like this xc.bat testfile /p=SQL_IS_ON
Now I want
in testfile.prg
#define SQL_IS_ON
Anybody an idea how to do this?
Pieter