how to start any process using C# like wordpad,notepad
How to start any process like notepad, word pad
friends today i tell you how to start any processes of operating system using c#
Coding-
using System. Diagnostics;
using System.Text;
using System.Collection;
using System;
namespace keshav
{
class ravi
{
public static void Main(string []args)
{
process p1=process.Start("devenv.exe");
Console.WriteLine("Visual Studio start");
p1.waitforexit();
p1.Close();
Console.WriteLine("Visual Studio Close");
}
}
}
Friends you run many process after one by one in this coding .when you first process done your next process is start, if you want to run many process. So Follow this coding and change process according to your choice
No comments: