Dave's Brain

Browse - Programming Tips - Where should my application save its working files?

Date: 2014aug28
OS: Windows

Q.  Where should my application save its working files?

A.

If its for a specific user:

C:\Users\<User>\AppData\Roaming\<YourCompany>\<YourApp>
If its for all users:
C:\Users\All Users\AppData\<YourCompany>\<YourApp>
And, of course, for user files:
C:\Users\<User>\Documents\<YourCompany>\<YourApp>
Its best not to hardcode c:\Users instead use GetProfilesDirectory() or SHGetSpecialFolderPath()

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.