Return Errorlevel to .bat file?

Posted by Stefan Marquardt on 13-Jan-2014 09:32

Hello,

is it correct that there is no way to return a exit-code to a .bat file which starts _progres to process the value of %errorlevel%?

Stefan

All Replies

Posted by Mike Fechner on 13-Jan-2014 09:35

As you seem to be on Windows, did you try?

msdn.microsoft.com/.../system.environment.exitcode(v=vs.110).aspx

Posted by Stefan Marquardt on 13-Jan-2014 09:39

The related system is windows with 10.2A without .net.

I would need something for a .p program.

Posted by Stefan Marquardt on 13-Jan-2014 09:43

Any return-value <> 0 would be helpful ...

Posted by Peter Judge on 13-Jan-2014 10:22

To the best of my knowledge this is not possible.
 
Maybe if you set and env var and wrapper the prowin/_progress call in a shell script which read that and returned an appropriate value?
 
-- peter
 
[collapse]
From: Marquardt, Stefan [mailto:bounce-Marquardt@community.progress.com]
Sent: Monday, 13 January, 2014 10:43
To: TU.OE.Deployment@community.progress.com
Subject: [LIKELY JUNK]RE: [Technical Users - OE Deployment] Return Errorlevel to .bat file?
 

Any return-value <> 0 would be helpful ...

[/collapse]

Posted by Thomas Mercer-Hursh on 13-Jan-2014 10:31

Echo the error level into a file and read the file.

Posted by Stefan Marquardt on 14-Jan-2014 04:23

Hello Mike, i tried System.Environment with 10.2A. ExitCode has no Result, Exit(3) crashes prowin32 but returns really 3 and creates a crash entry in windows log

This thread is closed