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 342 views
1 answer 276 views
276 views asked Oct 13, 2018 by avibootz
1 answer 324 views
324 views asked Oct 5, 2018 by avibootz
1 answer 349 views
1 answer 309 views
1 answer 309 views
1 answer 233 views
233 views asked Nov 27, 2016 by avibootz
...