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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling of EXE files

Status
Not open for further replies.

jabond007

Programmer
Jun 21, 2000
39
US
Hello

I need to call EXE. files in my program. I am right now using the SHELL command. But everytime i call it a new instance is created. My query is
a) How do i have control over EXE files.
b) how do i ensure that multiple instances are not created. I have tried my app.previnstance..it didnt work

Any help on calling of EXE's would be helpful.

Regards

[sig][/sig]
 
Hi,

q1 What kind of control would you like?

q2 Do you mean that you want your VB program to halt until the .exe finishes? [sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Yes i need the VB program to halt.

This exe file i am calling has only the windows icons for min, max and exit. This exe is a wrapper around a legacy system. it is the login screen. It also has the logout button.
When i run the VB code this can be minimised.

I am trying to activate the logout on the exe application window through the logout menu item on my screen. Can i do it...I dont have the code for the exe..

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top