i was done same thing in WPF by using the below code:
Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
But in WinRT Environment doest not have reference GetFolderPath.How could i achive same thing in WinRT.
Thanks
you can use the blow sample code
StorageFolder testFolder = await StorageFolder.GetFolderFromPathAsync( Environment.GetFolderPath(Environment.SpecialFolder.Desktop) );
also there is more information about special folders in msdn
Windows Runtime apps don't have access to arbitrary locations in the file system. They can directly access their own data and can get access to well KnownFolders such as the Pictures and Music libraries.
They don't have access to the desktop unless the user has granted it explicitly via a file or folder picker.