hi,
How do we check for dos errorlevel after executing a shell command from VB5/6. Your help is very much appreciated.
Tks.
Printable View
hi,
How do we check for dos errorlevel after executing a shell command from VB5/6. Your help is very much appreciated.
Tks.
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).