Solved

Launching one program from another

Posted on 2013-01-20
4
256 Views
Last Modified: 2013-01-21
My VB6 application consists of two program executables. They communicate via shared data files. For that reason, it is most convenient if they both are installed in the same folder.

Installers all seem to assume there will be just one "main" exe. (I am using InnoScript.)

Combining my two applications into one is possible, but that will require a lot of code re-write. (Duplicate declarations, and all that.)

I thought of building a simple front-end "dashboard" with just two command buttons (plus "Exit" of course). Each button is to launch one of my two program executables.

I don't know how to do that. How does one launch one program from another?
0
Comment
Question by:NormaPosy
  • 2
4 Comments
 
LVL 45

Assisted Solution

by:Martin Liss
Martin Liss earned 250 total points
Comment Utility
You use ShellExecute
0
 
LVL 15

Accepted Solution

by:
gplana earned 250 total points
Comment Utility
I would use Shell function, however, ShellExecute is another alternative.
Please see this article: http://www.developerfusion.com/article/9/shell-and-shellexecute-function/

Hope it helps.
0
 

Author Closing Comment

by:NormaPosy
Comment Utility
Thank you both so very much.
The article was very helpful.

I know VB6 is slowly drifting into history. I'm 79 years old, and have been retired for some time. Years ago I laid out the bucks and bought myself the complete VB6 package for use at home. I don't have any other development suites here.

I've free-lanced some applications, and this one is my most recent. Installation occupies about 2.5 MB. I'll be shipping it out to the client tomorrow.

Everyone here has been so helpful. Especially Martin, who has helped me many times.

Thank you all again. - - Norma
0
 
LVL 45

Expert Comment

by:Martin Liss
Comment Utility
You're welcome and I'm glad I was able to help. At 71 I'm not too far behind you. Are you aware that there are versions of VB.Net available for free?

Marty - MVP 2009 to 2012
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now