Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!sixhub!crdgw1.crd.ge.com!ibmbin-request From: ibmbin-request@crdgw1.crd.ge.com Newsgroups: comp.binaries.ibm.pc Subject: v08i111: el, set errorlevel for batch (part 01/01) Summary: Set errorlevel to value on command line Keywords: free Message-ID: <2025@sixhub.UUCP> Date: 4 Oct 90 09:01:15 GMT Sender: davidsen@sixhub.UUCP Followup-To: comp.binaries.ibm.pc.d Lines: 102 Approved: davidsen@sixhub.UUCP X-Submissions-to: ibmbin@crdgw1.crd.ge.com X-Questions-to: ibmbin-request@crdgw1.crd.ge.com Checksum: 678813880 (Verify with "brik -cv") Posting-number: Volume 08, Issue 111 Submitted-by: davidsen@crdos1.crd.ge.com Archive-name: el/part01 I recently saw a program to set ERRORLEVEL in batch programs, and it was shareware for twenty bucks! Here's one for free, complete with source (all one executable line of it). No fancy screens for help or license info. It's yours, and worth what you paid for it. Included is a test program for this or any other program which sets the ERRORLEVEL (test.bat). Usage: el {value} [ Checksums obtained with the 4.3BSD "sum" or System V "sum -r" command. checksum size (bytes) file (between BEGIN--cut and END--cut lines) 57889 4121 part01 checksum size (bytes) file 18677 2971 el.zoo -- bill ] el part01/01 BEGIN--cut here--cut here begin 644 el.zoo M6D]/(#(N,#`@07)C:&EV92X:``#4!``"]````'14\ M6%%M8@$``"@!```!````````````96PN8P````````````H`$%"R`````*0! M0````$`I(R@``%^H`#&G#!T01:1(>2*%21$K19B`,/-&#H@F4UH0>3)%`0@5 M'@<.>0,GCYPT9]`<1#$F!8@8.7+``"$F#P@A:=BP`4$DC)TT9`JZ80$BC$X0 M)U/2F8.T3$$Y=LJ0"0D"!!4T:9C"D?/FC)PP;4"T"6-33!D0=0J2`7$G#1TT M;^H<-%/F;,VB;O*\<7.6HL4P>4'`J2,'SIN"+*C2C*N4Z)PW;,@0%1-&#ITR M3'P[XX`=-F6$A.P3L`*8%#060HP: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