Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ALL,

I am able to get local system's Special Folders path using the following code.
System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)

How to get a remote system's Special Folders path.
Posted

Have a look at this solution on StackOverflow: How to expand environment variables remotely with .NET?[^].
 
Share this answer
 
Comments
Mehdi Gholam 6-Oct-11 8:26am    
My 5!
André Kraak 6-Oct-11 8:28am    
Thanks.
Hi,
have you tried reading Desktop variable for HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders registry key. It should return you the path you are looking for.
Kind regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900