batfile parameter

batfile parameter

Postby pieter » Wed Jan 06, 2016 2: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
User avatar
pieter
 
Posts: 117
Joined: Thu Jan 08, 2015 9:27 am

Re: batfile parameter

Postby pieter » Wed Jan 06, 2016 3:09 pm

Hello,

I have already the solution,

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

Pieter
User avatar
pieter
 
Posts: 117
Joined: Thu Jan 08, 2015 9:27 am

Re: batfile parameter

Postby Antonio Linares » Thu Jan 07, 2016 10:04 am

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 94 guests