Results 1 to 3 of 3

Thread: Saving application data!

  1. #1

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Saving application data!

    From what i understand it is among coding standards to write majority of the data to the Application Data folder (C:\WINDOWS\Application Data) is this true? A lot of the major products i have installed on my computer write stuff to that path. Does anyone know about this?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Saving application data!

    The folder "C:\WINDOWS\Application Data" is not actually the correct place to use, however the folder which is known as %AppData% (which actually points to that location on your PC, but not in all cases) or %UserAppData% is recommended.

    One way to find those locations is with the SHGetSpecialFolderLocation API, but apparently that is no longer recommended from Vista onwards (but from what I have been told, it will work in Vista). I would assume that the .Net framework provides its own method, and that is probably supported after Vista.

  3. #3
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: Saving application data!

    In VB.Net 2005:
    Code:
    My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width