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)
|