How to open and close windows notepad in C#

1 Answer

0 votes
using System.Diagnostics;

namespace ConsoleApplication_C_Sharp
{
    static class Program
    {
        static void Main()
        {
            Process p = Process.Start("notepad");

            System.Threading.Thread.Sleep(2000);

            p.Kill();
        }
    }
}


/*
run:
  

   
*/

 



answered Oct 13, 2018 by avibootz

Related questions

1 answer 247 views
1 answer 176 views
176 views asked Oct 13, 2018 by avibootz
1 answer 230 views
230 views asked Oct 5, 2018 by avibootz
1 answer 250 views
1 answer 216 views
1 answer 208 views
1 answer 156 views
156 views asked Nov 27, 2016 by avibootz
...