-1

Default path is C:\Users\<.YourUser>\AppData\Local\Packages. I want to replace it that turn into C:\Users\<.YourUser>\Desktop on PC. How can I achieve this?

StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting)
fujiFX
  • 413
  • 9
  • 18

1 Answers1

0

You can't programmatically read that location. You can however ask the user to pick the folder using FolderPicker class. You can set the SuggestedStartLocation property to the PickerLocationId.Desktop before calling the PickSingleFolderAsync method. The user can of course change the location or cancel the operation.

Peter Torr - MSFT
  • 11,824
  • 3
  • 18
  • 51