473,224 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

Launching one c# application from another


Excuse the novice aspects of this question, but:

What techniques are available to me for launching one c# application (
console .exe) from another?

For example, I know there is the Process and ProcessInfo classes, but
these seem designed for launching non-CLR applications.

Should I access the .exe as a reference?

Or dynamically invoke it, or just invoke its methods?

Should I use Reflection?

Is there a way to "launch" it so that once its running, it's entirely
detached from the calling application?

Is that what Reflection.Emit is for?

Is there a proper way to load a new Application space for a second
application, and is this the way to do what I am asking?

Can you direct me to any good references on the topic...I've been
Googling all weekend and everything seems to talk about launching a DOS
application (using Process) not about a c# app launching another c#?
--
RSS Feed/Incognito Blog
http://blog.360.yahoo.com/rss-siXzkM...bTlKkOL5SWLA--
Jan 16 '06 #1
1 2009

Maybe this answers my question, or part of it(?):

http://msdn.microsoft.com/library/de...emblyTopic.asp
class Test {
public static void Main() {
AppDomain currentDomain = AppDomain.CurrentDomain;
AppDomain otherDomain = AppDomain.CreateDomain("otherDomain");

currentDomain.ExecuteAssembly("MyExecutable.exe");
// Prints "MyExecutable running on [default]"

otherDomain.ExecuteAssembly("MyExecutable.exe");
// Prints "MyExecutable running on otherDomain"
}
}
John A. Bailo wrote:

Excuse the novice aspects of this question, but:

What techniques are available to me for launching one c# application (
console .exe) from another?

For example, I know there is the Process and ProcessInfo classes, but
these seem designed for launching non-CLR applications.

Should I access the .exe as a reference?

Or dynamically invoke it, or just invoke its methods?

Should I use Reflection?

Is there a way to "launch" it so that once its running, it's entirely
detached from the calling application?

Is that what Reflection.Emit is for?

Is there a proper way to load a new Application space for a second
application, and is this the way to do what I am asking?

Can you direct me to any good references on the topic...I've been
Googling all weekend and everything seems to talk about launching a DOS
application (using Process) not about a c# app launching another c#?

--
RSS Feed/Incognito Blog
http://blog.360.yahoo.com/rss-siXzkM...bTlKkOL5SWLA--
Jan 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Metnetsky | last post by:
From a Java application, how would I go about executing another program? Basically, I have a SOAP server setup waiting to receive commands to execute on a local application (start/stop/restart) and...
3
by: Brad Jones | last post by:
Hello, I'm hoping someone can give me some help or guidance here. I'm not sure if this is even the best group to post to for this. Our OEM equipment's software architecture relies heavily on a...
6
by: sebastien | last post by:
Hi I have an asp.net application that use Session variables. What I want to do is to launch an second instance of this application by a link inside the first application. The problem is: when I...
1
by: Ryan Malone | last post by:
I have a situation where I need to download multiple files in a vb.net application. To speed up the process, I am trying to download multiple files at one time looping through each of the files...
1
by: Water Cooler v2 | last post by:
I have a Windows Service I am writing in C# and a set of, let us say three, other executables written in C# (mostly console applications). I want that the Windows Service must do so every few...
0
by: microb0x | last post by:
Is there any difference in the way an Access .mdb file is launched from directly double-clicking the file through windows explorer versus using code within another Access file to launch the...
3
by: Probleminfinity | last post by:
I have installed a software and tried to launch the application with a user account. It configures the software and after approx. 45 min. it throws an error "Windows Installer is no longer...
3
by: tomar | last post by:
Hi all, I have created a desktop application on windows xp. I want it to expose one method implementing COM. this will be running on a separate thread So that another application send some...
0
by: SteelNetNob | last post by:
I am having a problem where I have a COM application that can be run stand-alone and programatically via COM interop. If an instance of the COM application is being run when my .NET application that...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.