C# Finding the Path to My Documents Folder

The "SpecialFolder" enum of the "Environment" class is used to find the path of the "My Documents" folder in the C# programming language.

Below is an example of how to use it...


 string myPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);



You May Interest

C# Non-Restart Check If Application is Open

C# Finding the Path to the Windows System32 Folder

C# Reverse Array

How to Find the Name of the Operating System in C# ?

C# Finding Cosine of an Angle