Page 1 of 1
all.bat
Posted:
Sun Jan 29, 2012 1:38 pm
by acwoo1
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
Re: all.bat
Posted:
Sun Jan 29, 2012 2:45 pm
by Antonio Linares
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
Re: all.bat
Posted:
Mon Jan 30, 2012 9:45 am
by acwoo1
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
Re: all.bat
Posted:
Mon Jan 30, 2012 11:51 am
by Antonio Linares
ACWoo,
Try it this way:
for %%I in (*.prg) do if not exist %%~nI.exe call buildh.bat %%~nI
Re: all.bat
Posted:
Wed Feb 01, 2012 4:29 am
by acwoo1
Thanks For Your Help
With the change, it still compiles from the beginning.
Regards
ACWoo
Re: all.bat
Posted:
Wed Feb 01, 2012 9:40 am
by Antonio Linares
ACWoo,
This seems to be working fine:
for %%I in (*.prg) do if not exist %%~nI.exe buildh.bat %%~nI
Re: all.bat
Posted:
Wed Feb 01, 2012 1:20 pm
by acwoo1
Thanks
Tested the latest. It's OK now.
Regards
ACWoo
Re: all.bat
Posted:
Wed Feb 01, 2012 3:21 pm
by Antonio Linares
Very good