Solved

VB.Net Menu Application to Launch Executables

Posted on 2012-04-06
1
437 Views
Last Modified: 2012-04-09
I have written multiple vb.net applications and published them as executables.  I would like to create one vb.net Menu app that will launch thes executables with the click of a menu option.

What is the best approach?  If my idea is do-able, will I need to build a script to install all the the menu and all executable apps on each desktop when deployed.  Is there a better solution than vb.net?

pfc
0
Comment
Question by:pfc42355
1 Comment
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 37817995
I'm sure you know the "menu app" will be a Forms app. You have a couple of options for starting the others.

Since the other applications are .NET applications, you can add references to them just the same as if they were .DLL library files. You would call Program.Main (assuming you didn't change the name of the default "Program" class), and you would pass that function any "command line" arguments you might have passed had you started the apps from a command prompt. This means that the other apps will be loaded into the same AppDomain as your application.

Since the other applicatons are also "standalone" applications (in that you can execute them directly from a command prompt), you could also start the applications as separate processes from your main menu application. They would not share the same AppDomain via this method. For this method, you would need to look into the Process class. As a quick example, you could do something like this:

Imports System.Diagnostics

...

Dim p As New Process()

p.Start("C:\path\to\some\executable.exe", "some parameter values if needed, otherwise leave out or pass empty string")

' p.WaitForExit()  ' If you need to wait until the app has completed before continuing

Open in new window

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
A procedure for exporting installed hotfix details of remote computers using powershell
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

705 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

21 Experts available now in Live!

Get 1:1 Help Now