Click here to Skip to main content
14,145,240 members
Rate this:
Please Sign up or sign in to vote.
See more:

I am able to get local system's Special Folders path using the following code.

How to get a remote system's Special Folders path.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Have a look at this solution on StackOverflow: How to expand environment variables remotely with .NET?[^].
Mehdi Gholam 6-Oct-11 8:26am
My 5!
André Kraak 6-Oct-11 8:28am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190518.1 | Last Updated 6 Oct 2011
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100