Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!caen!uwm.edu!ux1.cso.uiuc.edu!s.psych.uiuc.edu!amead From: amead@s.psych.uiuc.edu (alan mead) Newsgroups: comp.lang.pascal Subject: Re: halt() problem Message-ID: <1991Mar18.214623.18899@ux1.cso.uiuc.edu> Date: 18 Mar 91 21:46:23 GMT References: <26295@adm.brl.mil> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 20 Mark@hamster.business.uwo.ca (Mark Bramwell) writes: >program test; >begin > halt(1); >end. >should it not give an errorlevel of 1? >XYZ.BAT contains: >test >if errorlevel 1 ver >It does not print out the dos version. I beleive I have used this in the >past, but I only have 6.0 loaded on my machine now. Any ideas? Does anyone >with 5.x want to try it? It worked when I changed the errorlevel to 2 (I introduced a bug and didn't try 1). I believe I've used 1 before successfully. -alan mead : amead@s.psych.uiuc.edu