Calling Program A from Program B

F

fripper

I want to write a sort of "program manager" (in VB 2005) from which users
can select from a list of other programs I have written ... and then when
the user exits that program have control come back to the program manager so
the user can select another program to be executed. I do not know how to
call one program from another ... or how to return to the calling program.
I have looked through the "How to's" in VB 2005 Help but did not find this
subject broached. Any thoughts would be appreciated.

Thanks.
 
C

Chris

fripper said:
I want to write a sort of "program manager" (in VB 2005) from which users
can select from a list of other programs I have written ... and then when
the user exits that program have control come back to the program manager so
the user can select another program to be executed. I do not know how to
call one program from another ... or how to return to the calling program.
I have looked through the "How to's" in VB 2005 Help but did not find this
subject broached. Any thoughts would be appreciated.

Thanks.

Look at the Process class. It will let you launch new programs. When
your "child" process closes down have it launch the program manager again.

chris
 
C

Cor Ligthert [MVP]

Fripper,

In addition to Chris a simple sample.

\\\Notepad
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.arguments = "c:\windows\win.ini"
pi.FileName = "notepad.exe"
p.startinfo = pi
p.Start()
///

I hope this helps,

Cor
 
H

Herfried K. Wagner [MVP]

fripper said:
I want to write a sort of "program manager" (in VB 2005) from which users
can select from a list of other programs I have written ... and then when
the user exits that program have control come back to the program manager
so the user can select another program to be executed. I do not know how
to call one program from another ... or how to return to the calling
program.

'System.Diagnostics.Process'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top