TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: GARY MAJOR
from: JOSE MEJUTO
date: 1995-06-07 10:54:00
subject: Errorlevels

28 May 95 18:56, Gary Major escrib¡a a All:
Hola Gary!
 GM> I am looking for a way to trap an errorlevel from a shell command.
 GM> when Irun pkzip in a shell and i want to trap the errorlevel returned
 GM> by pkzip and use it in another part of my program. How could i do
 GM> this?
 Try this:
-----------------------====---------------------------------
%AX=1
Function GetErrorLevel as INTEGER
         Reg %AX,&H4D00
         Call Interrupt &h21
         GetErrorLevel=Reg(%AX) And &HFF
End Function
-----------------------====---------------------------------
Saludotes,
       ,,,
      `0-0'  JOS (2:348/102)
     /-(_)-\ jmejuto@encomix.com
--- FD2.12+ & GoldED2.50+ & FE141+
---------------
* Origin: -=EDI=BBS=-// Santiago de Compostela //+34-81-502110 (2:348/102)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.