CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Posts
    13

    How to run a DOS application in VB application without display the Window's DOS shell window?

    Hi,

    I want to run a DOS application from my VB application.

    My question is how to run a DOS application in VB application without display DOS prompt window.




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

    Re: How to run a DOS application in VB application without display the Window's DOS shell window?

    this works under NT 4

    Shell "cmd.exe /C dir",vbhide
    (in win95 you should use command instead of cmd


  3. #3
    Join Date
    Aug 1999
    Posts
    13

    Re: How to run a DOS application in VB application without display the Window's DOS shell window?

    Thank u very much.

    One more question, my application will lose focus (VBHide) and doesn't wait for the dos application end.

    May be I can use AppActivate to get focus again, I am not sure.

    How to detect if the started dos application is ended?




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

    Re: How to run a DOS application in VB application without display the Window's DOS shell window?

    if you need to wait for the end of the started app, I suggest you use the CreateProcess API and 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