Page 2 of 2

Re: How to set exit code with errorlevel() ?

Posted: Sun Sep 17, 2017 2:51 pm
by BeGeS
edk wrote: Sun Sep 17, 2017 8:41 am What OS? Which version of HMG?
I tested on HMG 3.4.4 with WinXP 32 and both Win10 32bit/64bit, works fine.
Oh my God! You are right. :oops:

O.S .: Windows 10 - ver. 1703 - compilation 15063.608 of Sep 12, 2017.
(After many years of being accused as obsolete, I have the sickly mania of the update :| ).

But the problem could not be the O.S. because with Harbour (only) works in W10.

Is the HMG version. I use Extended 17.08, and it not going. With 3.4.4 it works wonderfully.

The rare thing is that the function ExitProcess() performs "well" :roll: , but file.bat does not collect the value of file.exe

Sorry and thanks.

And since I have to stay with Extended, all I can do is one thing:

Heeeelp, Filatov! :lol:

Re: How to set exit code with errorlevel() ?

Posted: Tue Nov 28, 2017 4:35 pm
by kristalist
You should use AutoIt v3 script for correct exit code analysis.

Re: How to set exit code with errorlevel() ?

Posted: Tue Nov 28, 2017 6:51 pm
by gfilatov
BeGeS wrote: Sun Sep 17, 2017 2:51 pm And since I have to stay with Extended, all I can do is one thing:

Heeeelp, Filatov! :lol:
Hi,

Thanks for your report :!:

It will be fixed at a next Extended build, of course :?