Home » FAQ » WinForms » Win32 » How can I get the directory name for ‘My Documents’ folder and other system directories?
Mark Boulter (Microsoft) gives code in a posting to the DOTNET newsgroup at [email protected].
You can also use the System.Environment class to get at this information.
MessageBox.Show(Environment.GetFolderPath(Environment.SpecialFolder.Personal));
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with