Solved

Get exit code from VB exe?

Posted on 2002-06-06
4
331 Views
Last Modified: 2008-02-26
How can I return an exit code from a vb 6 exe? One that could be trapped from another program or .bat errorlevel?
0
Comment
Question by:gferrell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 7060134
0
 

Author Comment

by:gferrell
ID: 7060190
In your experience, does this cause a problem since this command is unsupported in vb?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7060194
I have used it without problems in batch applications that are still running every night.

ExitProcess is an API call given by Windows. It doesn't have to be supported to be working!
0
 
LVL 5

Expert Comment

by:rpai
ID: 7060212
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question