Jump to content
Macro Express Forums

Return codes


rberq
 Share

Recommended Posts

A DOS batch file can set a return code, for example

EXIT 5

which can be tested within DOS like so:

IF ERRORLEVEL ....

 

If I launch a DOS batch file from ME, can I get the return code directly into a variable? For example something like this, which I have tried and it doesn't seem to work:

Variable Set String from Environment Variable [ERRORLEVEL]

 

How about the return code from a Windows program?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...