By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,759 Members | 1,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,759 IT Pros & Developers. It's quick & easy.

Opening Other Application

P: n/a
Is it possible to run other applications like start MS word, or turn
off the system, or run an antivirus program SCAN etc.. using .NET

Jun 12 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
sravan_reddy001 wrote:
Is it possible to run other applications like start MS word, or turn
off the system, or run an antivirus program SCAN etc.. using .NET
Yes ...

Process.Start is one possibility.

Arne
Jun 12 '07 #2

P: n/a
Yes you can with diagnostic.Process.start(..). you can also pass
parameteres to the process you want start.
For example:

// Starting a new process.
using System;
using System.Diagnostics;

public class StartProcess
{
public static void Main()
{
Process newProc = Process.Start("wordpad.exe");
Console.WriteLine("New process started.");
newProc.WaitForExit();
newProc.Close(); // free resources
Console.WriteLine("New process ended.");
}
}

Take a look at this. It will help you

http://www.codeproject.com/csharp/st...ternal_app.asp
On Jun 12, 3:39 am, Arne Vajhøj <a...@vajhoej.dkwrote:
sravan_reddy001 wrote:
Is it possible to run other applications like start MS word, or turn
off the system, or run an antivirus program SCAN etc.. using .NET

Yes ...

Process.Start is one possibility.

Arne

Jun 12 '07 #3

P: n/a
thanks..

that worked good...
now how can i take control over the presently running process. ex
explorer.exe

i want my program to end explorer.exe and start it after some 15 secs..

Jun 23 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.