Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell To a Win App From DOS

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0

Hi there!

I am trying to integrate a DOS application with a windows application. I want at some point the DOS application to shell out to the windows application and pass start up parameters to it. Is it possible??

Thanks
 
I'm not sure I understand what you're question is. If you want to know how to pass command line arguments to a VB app, you can do it with the Command function, which returns a string containing the argument portion of the command line.
 
If you merely want to run a dos prompt, use the ShellExecute API. If you want to run a dos prompt/program, then have it 'within' your apps MDI form, you can shell it as above, then use the SetParent API to associate it with your program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top