Hello Forum,
I am having an issue with 4NT (version 6.01.245U) running on WIN XP SP3. Great product, love it, but the following small batch file (simplied for posting reasons) drives me mad, can't get it to work as expected. The idea is to have a timeout for the loop.
4NT always issues a warning that the syntax of the line preceding the enddo (e.g. "delay 1") is incorrect. If I delete that line, it complains about the syntax of "echos ." Error message currently reads as follows:
.path+name_of_file [8] Syntax: DELAY [/B /M] [seconds]
It appears to me that the loop is being started (noticeable by the "." being printed on screen and the delay of 1 second), but then, for some obscure reason, it is not able to continue and attributes that to the last statement within the body of the loop.
I am either blind or it is a bug ...
Any input greatly appreciated.
Best regards,
Klaus
I am having an issue with 4NT (version 6.01.245U) running on WIN XP SP3. Great product, love it, but the following small batch file (simplied for posting reasons) drives me mad, can't get it to work as expected. The idea is to have a timeout for the loop.
Code:
set datetime=%@agedate[%@eval[%@makeage[%_date,%_time] + 600000000]]
set my_date=%@instr[0,10,%datetime%]
set my_time=%@instr[11,8,%datetime%]
do until datetime %my_date% %my_time%
echos .
delay 1
enddo
4NT always issues a warning that the syntax of the line preceding the enddo (e.g. "delay 1") is incorrect. If I delete that line, it complains about the syntax of "echos ." Error message currently reads as follows:
.path+name_of_file [8] Syntax: DELAY [/B /M] [seconds]
It appears to me that the loop is being started (noticeable by the "." being printed on screen and the delay of 1 second), but then, for some obscure reason, it is not able to continue and attributes that to the last statement within the body of the loop.
I am either blind or it is a bug ...
Any input greatly appreciated.
Best regards,
Klaus