更新时间:2023-11-29 15:17:52
在***上查看以下解决方案: ^ ].
Have a look at this solution on ***: How to expand environment variables remotely with .NET?[^].
您是否尝试读取HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
注册表项的Desktop
变量.它应该返回您正在寻找的路径.
亲切的问候
Hi,
have you tried readingDesktop
variable forHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
registry key. It should return you the path you are looking for.
Kind regards