?
Solved

VB.Net Menu Application to Launch Executables

Posted on 2012-04-06
1
Medium Priority
?
446 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 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 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

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

757 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