473,388 Members | 1,352 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,388 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 2017

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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.