[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

DOS Errorlevel

Posted on 1997-11-04
1
Medium Priority
?
1,125 Views
Last Modified: 2008-03-10
How can I set a DOS errorlevel,while exiting a Delphi aplication liked as a console aplication.
0
Comment
Question by:cynolebias
1 Comment
 
LVL 3

Accepted Solution

by:
mirek071497 earned 200 total points
ID: 1349474
ExitProcess( errnr ) or Halt( errnr )

However you may have some difficulties with using this, because in WinNT you can't set errorlevel for other process.

example

in any.bat you can't use this :

myprog.exe
if errorlevel==2 ....

this is because myprog.exe can't set environment for any.bat which is other process.


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses

873 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