Bla*_*ell 145
如果要使用枚举,请尝试以下操作:
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
Run Code Online (Sandbox Code Playgroud)
使用此技术,您还可以找到所有其他Window的文件路径(即程序文件,我的文档等).
Kri*_*ves 24
Environment.GetEnvironmentVariable("LocalAppData") 对于C#,因为Visual Studio不是一种语言,除非您希望在其中一个VS对话框中获取该变量.