Can I share documents between apps that have been saved to %AppData% sub folder?

Occasional Contributor

At MS Docs - Understanding how packaged desktop apps run on Windows - Other folders it reads:


New files and folders created under the following directories are redirected to a per-user, per-package private location:

  • Local
  • Local\Microsoft
  • Roaming
  • Roaming\Microsoft
  • Roaming\Microsoft\Windows\Start Menu\Programs


So, if an app would save a new file to, e.g. {AppData}\Roaming\.repos\MyProject\Main.cs, then no other app can read that file?


Then again, files saved to %AppData% thus cannot be shared across apps?


Your answer is appreciated.

2 Replies
best response confirmed by BetterToday (Occasional Contributor)

@BetterToday  It is technically possible for the other app to find the file by knowing the package family name of the package that created the file, but if you expect and end-user to browse to that location it is not likely to be acceptable by them.


You would be better off in using a different common area for storage of cross-app shared files that is not subject to redirection.  While the Documents folder is a common approach, you gave a coding file as an example; so you might want to try elsewhere.  For example, directly in the user profile ("C:\users\username\repos") should work and avoid the redirection (as long as you keep that folder out of the package).

@TIMOTHY MANGANExcellent! Thanks a lot for your very informative and comprehensive answer.


I wanted to make sure if I got it right and needed this clarification for me understanding the redirection logic.


Appreciate your great clarification!