Solved

Launching one program from another

Posted on 2013-01-20
4
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 48

Assisted Solution

by:Martin Liss
Martin Liss earned 250 total points
ID: 38798835
You use ShellExecute
0
 
LVL 15

Accepted Solution

by:
gplana earned 250 total points
ID: 38798901
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
ID: 38799892
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 48

Expert Comment

by:Martin Liss
ID: 38801793
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month6 days, 3 hours left to enroll

627 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