Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[VB.NET] & [C#] - Get System Process

This is not my source but i was the one who Translated it to C#

VB.NET
Code
Module Module1
    Sub Main()
        Dim p As System.Diagnostics.Process
        For Each p In System.Diagnostics.Process.GetProcesses
            Console.WriteLine(p.ProcessName)
        Next
    End Sub
End Module

C#
Code
static class Module1
{
    public static void Main()
    {
        System.Diagnostics.Process p = default(System.Diagnostics.Process);
        foreach (var p in System.Diagnostics.Process.GetProcesses) {
            Console.WriteLine(p.ProcessName);
        }
    }
}

I hope it was helpful. ✌

-NathanE

PHP & .NET Contributor.
it's not that hard to push the convert button but this is useful none the less


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by gigajewNov 17, 2019 11:47 AM 17 1,541 Nov 17, 2019 11:47 AM
Last Post: gigajew
[Python] by R4NS0MMar 6, 2019 11:43 AM 9 292 Mar 6, 2019 11:43 AM
Last Post: Saitama
[.NET] by Formula 1Mar 3, 2019 02:36 PM 6 226 Mar 3, 2019 02:36 PM
Last Post: Formula 1