Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!kirsch@braggvax.arpa From: kirsch@braggvax.arpa (David Kirschbaum) Newsgroups: comp.lang.pascal Subject: Re: TurboP ErrorLevel return question Message-ID: <11028@brl-adm.ARPA> Date: 29 Dec 87 16:45:54 GMT Sender: news@brl-adm.ARPA Lines: 11 Richard asks how to return an ERRORLEVEL value from Turbo Pascal 3.0. Haven't actually tested this, but the manual (p135) on the Procedure Halt says: "In PC/MSDOS, Halt may optionally pass a (sic) integer parameter specifying the return code of the program. Halt without a parameter corresponds to Halt(0). The return code may be examined by the parent process us- ing an MS-DOS system function call or through an ERRORLEVEL test in an MS-DOS batch file." David Kirschbaum Toad Hall