如何访问 Windows 中的特殊目录?
在 Windows 上检索用户桌面、文档文件夹和其他系统文件夹的 C# 语法是什么?
What is the C# syntax to retrieve the user's desktop, documents folder and other system folders on Windows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以将 Environment.GetFolderPath 与 Environment.SpecialFolder 枚举。例如:
You can use Environment.GetFolderPath with the Environment.SpecialFolder enumeration. For example:
用途:
其中 * 是枚举值之一。
Use:
Where * is one of the enum values.
ETC。
etc.
使用 Environment.GetFolderPath 方法
Use Environment.GetFolderPath Method