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 182 views
1 answer 273 views
1 answer 323 views
1 answer 196 views
1 answer 187 views
...