CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: errorlevel

  1. #1
    Join Date
    Sep 1999
    Posts
    92

    errorlevel

    hi,

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

    Tks.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: errorlevel

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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured