Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!ihnp4!inuxc!iuvax!pur-ee!uiucdcs!uxc.cso.uiuc.edu!hamilton From: hamilton@uxc.cso.uiuc.edu Newsgroups: comp.sys.ibm.pc Subject: Re: More on setting DOS errorlevel Message-ID: <174200074@uxc.cso.uiuc.edu> Date: 18 Mar 88 10:41:00 GMT References: <4835@sigi.Colorado.EDU> Lines: 21 Nf-ID: #R:sigi.Colorado.EDU:4835:uxc.cso.uiuc.edu:174200074:000:865 Nf-From: uxc.cso.uiuc.edu!hamilton Mar 18 04:41:00 1988 /* Written 9:57 am Mar 16, 1988 by wew@naucse.UUCP in uxc.cso.uiuc.edu:comp.sys.ibm.pc */ If you read your DOS manual you would know that the IF ERRORLEVEL statement tests for >= the errorlevel given. You have to reverse engineer your logic. Dumb of IBM and Microsoft but that's the way it goes. Bill Wilson. /* End of text from uxc.cso.uiuc.edu:comp.sys.ibm.pc */ what's so dumb about it? if you want to check individual values, you can; just check for them in decreasing order. imagine tho that it had been implemented to test for exact match, and you wanted to check for >=! wayne hamilton U of Il and US Army Corps of Engineers CERL UUCP: {ihnp4,seismo,pur-ee,convex}!uiucuxc!hamilton ARPA: hamilton@uxc.cso.uiuc.edu USMail: Box 476, Urbana, IL 61801 CSNET: hamilton%uxc@uiuc.csnet Phone: (217)333-8703 CIS: [73047,544] PLink: w hamilton