Solved

VB.Net Menu Application to Launch Executables

Posted on 2012-04-06
1
442 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
[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
1 Comment
 
LVL 75

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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

690 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