Process Class

Simple example of starting a process using the process class.


private void btnStartProcess_Click(object sender, System.EventArgs e)
{
Process.Start("notepad.exe");
}



Passing Some additional Parameters..

private void btnProcessStartInfo_Click(object sender, System.EventArgs e)
{
ProcessStartInfo startInfo = new ProcessStartInfo("notepad.exe");
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(startInfo);
}


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: