Click to See Complete Forum and Search --> : errorlevel


Shah
November 16th, 1999, 08:41 PM
hi,

How do we check for dos errorlevel after executing a shell command from VB5/6. Your help is very much appreciated.

Tks.

Lothar Haensler
November 17th, 1999, 01:29 AM
I#d use the CreateProcess API to start the DOS program and use the GetExitCodeProcess API to get the return code (==errolevel) after waiting for the DOS program to finish (via WaitForSingleObject).