Location for Data Files

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



While this applies to Vista, it also applies to XP (even though most ignore
it). Like most, my programs use INI and input files, as well as
customer-made and modified data files. I've always placed the INI and main
data files in the Program directory, and the data files (similar to
spreadsheets in Excel) into a subdirectory of the Program directory. Now, I
realize this is all contrary to Vista (and the more proper XP operation as
well), as the user does not always have write access there.

Now, for the INI file, I have no problem putting it into the preferred
Users\All Users\Application Data\MyProgram directory (using
Environ$("ALLUSERSPROFILE"). While the Application Data directory is
actually hidden, that really doesn't matter for this purpose.

However, I also have some configuration data files which customers trade
with each other, and need to be able to browse to, to copy, add new files
to, etc.. Program Themes are an example of these files. Obviously,
Application Data isn't the best place for those.

And then there are the individual data files that are provided with the
program, and constantly modified, and new ones created, by the customer. One
of my programs provides over 3,000 of these files, into subdirectories under
a main data directory. It makes some sense to put them into a subdirectory
of the user's Documents directory. But then no one else using the computer
(with a different login) can get to them. And putting them into the \All
Users\Documents directory makes it a royal pain to get to.

Where the heck is the best/recommended place to put these kind of files? It
is so simple, to me, logical (and it's where the custom expects them), to
put them in subdirectories of the Program directory, but that breaks all the
rules.

--
Regards,

Rick Raisley


.



Relevant Pages

  • Re: Location for Data Files
    ... Like most, my programs use INI and input files, as well as ... customer-made and modified data files. ...
    (microsoft.public.vb.general.discussion)
  • Fortran write(print) problem
    ... When I was processing some data files, there needed many ctl ... file(something like .ini), ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: Can you use Xnews with 64 bit Vista?
    ... doesn't work in XP and it doesn't work in Vista. ... 1> Isn't there the issue with data files ending up in the "Program Files" ... and gave details about similar problems with other (than Xnews) software ... continuing discussion is your unfamiliarity with Windows XP, ...
    (news.software.readers)
  • Re: Where to Save Data Files and Folders
    ... that data files be initially saved in the user Document folder of Vista, otherwise there could be some difficulty. ... I was considering a specific procedure for saving and backup of files and folders, such as saving data files to the second internal physical hard drive through out the day, and then at the end of the day, accomplish a backup for these daily files to a place on the third internal physical hard drive. ... It's easy to see why your install of Vista Business is so screwed up and that you're having so many problems with it mr gotemeyer. ... You deserve all of the shit that daily comes your way. ...
    (microsoft.public.windows.vista.general)
  • Re: Sharing Vista File With XP Machine
    ... I marked the files for sharing by right-clicking but apparently not ... There's something I failed to do on the Vista machine to ensure access ... When I go to the XP machine and look at My Network Places, ... Quicken Data Files on Xps435 ...
    (microsoft.public.windows.vista.file_management)