all.bat

all.bat

Postby acwoo1 » Sun Jan 29, 2012 1:38 pm

Hi

for %%I in (*.prg) do buildh.bat %%~nI

For the above (all.bat in c:\fwh\samples), how do I change it so that if the exe already exist, no need to compile again.
(i.e. skip if the exe already compiled from prg and go to next prg)

Thanks

ACWoo
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am

Re: all.bat

Postby Antonio Linares » Sun Jan 29, 2012 2:45 pm

Try this (not tested as I am typing from the iphone)

for %%I in (*.prg) do if not exist %%~nI.exe do buildh.bat %%~nI
regards, saludos

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

Re: all.bat

Postby acwoo1 » Mon Jan 30, 2012 9:45 am

Thanks For Your Help

With the change, I get this message:

'do' is not recognized as an internal or external command,
operable program or batch file.

Regards

ACWoo
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am

Re: all.bat

Postby Antonio Linares » Mon Jan 30, 2012 11:51 am

ACWoo,

Try it this way:

for %%I in (*.prg) do if not exist %%~nI.exe call buildh.bat %%~nI
regards, saludos

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

Re: all.bat

Postby acwoo1 » Wed Feb 01, 2012 4:29 am

Thanks For Your Help

With the change, it still compiles from the beginning.


Regards

ACWoo
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am

Re: all.bat

Postby Antonio Linares » Wed Feb 01, 2012 9:40 am

ACWoo,

This seems to be working fine:

for %%I in (*.prg) do if not exist %%~nI.exe buildh.bat %%~nI
regards, saludos

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

Re: all.bat

Postby acwoo1 » Wed Feb 01, 2012 1:20 pm

Thanks

Tested the latest. It's OK now.

Regards

ACWoo
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am

Re: all.bat

Postby Antonio Linares » Wed Feb 01, 2012 3:21 pm

Very good :-)
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 131 guests