Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

Launching one program from another

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
NormaPosy
Asked:
NormaPosy
  • 2
2 Solutions
 
Martin LissRetired ProgrammerCommented:
You use ShellExecute
0
 
gplanaCommented:
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
 
NormaPosyAuthor Commented:
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
 
Martin LissRetired ProgrammerCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now