You can take a look at this post from Microsoft forums. It seems to have two ways to do it.
Both the .ini file and the registry key are currently reliable ways of retrieving the local SkyDrive folder.
You can find the Registery key at HKEY_CURRENT_USER\Software\Microsoft\SkyDrive
, with the name UserFolder
.
// C# sample
String SkyDriveFolder = Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\SkyDrive", "UserFolder",null).ToString();
You can find the .ini file at C:\Users\{username}\AppData\Local\Microsoft\SkyDrive\settings
Follow this steps :
Get the name of the single .DAT file that exists here.
Find the .INI file with the same name (sans extension) as the .DAT file. The reason you are doing this is because there is more than one .INI file, but only a single .DAT file, and it shares the name with the .INI file you need.
Open this .INI file and parse the final line, which begins with "library". The final piece of this line is the local mapping path.
Hope this can help.