FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour batfile parameter
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
batfile parameter
Posted: Wed Jan 06, 2016 02:28 PM
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
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Re: batfile parameter
Posted: Wed Jan 06, 2016 03:09 PM

Hello,

I have already the solution,

I have to use /d (xc.bat testfile /dSQL_IS_ON)

Pieter

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: batfile parameter
Posted: Thu Jan 07, 2016 10:04 AM

very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion