Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi) Newsgroups: comp.lang.pascal Subject: Re: halt() problem Message-ID: <1991Mar19.045840.12610@uwasa.fi> Date: 19 Mar 91 04:58:40 GMT References: <26295@adm.brl.mil> Organization: University of Vaasa Lines: 20 In article <26295@adm.brl.mil> Mark@hamster.business.uwo.ca (Mark Bramwell) writes: >I am trying to write a very simple program but I am having a difficulty with >the halt function. I want the program to end and set an errorlevel so I can : >XYZ.BAT contains: >test >if errorlevel 1 ver : Your problem is not with the halt command but with your syntax in using errorlevel. Try eg consulting your MsDos manual, or get /pc/ts/tsbat24.arc from our site for studing batch programming. The latter contains many useful batch tricks and much general batch knowledge. ................................................................... Prof. Timo Salmi Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37 School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun