Board index » delphi » Dos Exit codes

Dos Exit codes

Hi everyone:

Using delphi 4, does anyone know how to set the program exit code that
MS Dos can then test with 'If errorlevel 4....."

I thought halt(4) would do it, but it does not.

Thanks!
-dave

 

Re:Dos Exit codes


For console applications use: Halt(ExitCode)
For window applications use: PostQuitMessage(ExitCode)

"Dave" <Rai...@pacifier.com> schreef in bericht
news:39496FC2.65EA06F4@pacifier.com...

Quote
> Hi everyone:

> Using delphi 4, does anyone know how to set the program exit code that
> MS Dos can then test with 'If errorlevel 4....."

> I thought halt(4) would do it, but it does not.

> Thanks!
> -dave

Other Threads