Where is ms-appdata?

I am creating a modern ui application and want, with a batch file, to write and periodically update the available data using the ms-appdata:// protocol in my winjs application. I have a batch file for copying folders, but I can not find the path to the appdata file.

What is the default path for App1 appdata and how can I get the application to create a folder?

+1
visual-studio-2013 winjs appdata
source share
1 answer

ms-appdata: /// [local | roaming | temp] / maps to the StorageFolder returned from Windows.Storage.ApplicationData.Current.localFolder, roamingFolder and temporFolder. See https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localfolder.aspx for an example. Thus, you can get the appropriate StorageFolder from this API by creating folders and files there, and then use the ms-appdata URI to refer to them.

Note that you always want to use the Windows.Storage.ApplicationData API to access these folders, and not to use absolute paths. StorageFolder and StorageFile are WinRT abstractions for path names and completely replace them.

+5
source share

All Articles