Solved

Launching one program from another

Posted on 2013-01-20
4
267 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 47

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 47

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 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…

751 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