How to get the number of processes in Windows with C#

1 Answer

0 votes
using System;
using System.Diagnostics;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            Process[] processes = Process.GetProcesses();

            Console.WriteLine(processes.Length);
           
        }
    }
}


/*
run:

103

*/

 



answered Aug 10, 2018 by avibootz

Related questions

1 answer 189 views
1 answer 278 views
1 answer 326 views
1 answer 205 views
1 answer 192 views
...