-3

For example: C:\Users\gabriel\Desktop\

There it creates the folder on the desktop

I do not have code, and I have no idea how to do it. And I do not want to use FolderPicker, I want to define in the folder path code

  • Are you asking how to get the path of the current user's desktop folder? – 001 Jan 18 '17 at 19:35
  • That. I want to have a path destined to create the folder – Gabriel Bucalon Jan 18 '17 at 19:39
  • What have you tried? What error are you getting? UWP applications are meant to be like phone apps in that they do not allow arbitrary access to operating system APIs (like creating folders) you may have to define permissions to create a folder on the user's desktop. – Erik Berkun-Drevnig Jan 18 '17 at 19:43
  • I was using folderPicker, but I did not want to open windows explorer. To choose where I want to create the folder. I already want a place set for her to be created – Gabriel Bucalon Jan 19 '17 at 14:27

1 Answers1

2

Generally speaking, UWP applications are sand-boxed for security, so you might not be able to interact with the filesystem in the way that you want.

If you have enough control over the target machine, you might be able to ensure that some console app or windows service is also running on the machine, and you can send http requests to that app so that it can do things that your UWP app can't.