using System.IO;
string userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
// output : C:\Users\robin
string myDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
// output : C:\Users\robin\Documents
// 依次类推可以得到 Music Videos 等文件夹
Last active
December 23, 2023 23:47
-
-
Save songzheng45/8a7a2ff6fbb62f000ecc87e888fc4c46 to your computer and use it in GitHub Desktop.
C# - get user profile folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment