Tag Archives: list
List all subfolders in C#

Use the following code to list all subdirectories of a folder. try { String[] allfolders = System.IO.Directory.GetDirectories("C:\", "*", System.IO.SearchOption.TopDirectoryOnly); if…

Get system hard drives with C#

Retrieve the available disk drives with GetLogicalDrives function. try { foreach (String lodi in Environment.GetLogicalDrives()) if (lodi != String.Empty) Console.WriteLine(lodi);…

Get system services with C#

To list system services, we are going to use ServiceController class. Add a reference to System.ServiceProcess namespace first. try {…

Get all system processes with C#

List all System running processes with the following code: public void GetAllProcesses() { foreach (System.Diagnostics.Process proc in System.Diagnostics.Process.GetProcesses()) { try…

Get a list of opened windows C#

With the following method you can list all opened windows using C#. public void ListOpenedWindows() { IntPtr hwnd; foreach (System.Diagnostics.Process…

Getting a list of computers in the same workgroup

1. Open your command line 2. Type new viewnew view

List all your shared folders

With the following command you can list all your shared folders in Windows via command line: net sharenet share

List all active connections

To show all active connections of your computer – Open command line (cmd) – Execute: netstat -naonetstat -nao

List all TCP and UDP endpoints on your system

TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system,…

Ubuntu – List remote host shared folders

Usage: smbclient -U <username> -L <hostname>smbclient -U <username> -L <hostname> smbclient -U <username> -L <ip address>smbclient -U <username> -L <ip…

Previous Page · Next Page