In my PC, I've changed my default downloads folder from "C:\Users\MyProfile\Downloads" to "D:\Downloads".
Now, in my UWP app, I am able to save the files that user downloads from my app in the "D:\Downloads" using the Windows.Storage API DownloadsFolder class. But I need to display the path, where the files are getting downloaded, to the user.
I'm not able to fetch the location which the user has set as his default download location in the case as I have said above (from c: drive to d: drive).
Is there any way to check if the user has set a different location for his downloads and if so get the folder path?
Environment.ExpandEnvironmentVariables(@"%USERPROFILE%\Downloads")
The above code always gives "C:\Users\MyProfile\Downloads". But I've changed my download location to D: drive.