Answers for "get all folder in drive in c#"

C#
2

get all files in all subdirectories c#

Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
Posted by: Guest on December-23-2020
0

get folders in directory c#

string[] folders = System.IO.Directory.GetDirectories(@"C:\My Sample Path\","*", System.IO.SearchOption.AllDirectories);
Posted by: Guest on October-30-2020

Code answers related to "get all folder in drive in c#"

C# Answers by Framework

Browse Popular Code Answers by Language