CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Question Accessing files in windows Vista.

    Hi All,

    i am developing an application which reads and writes some files in the Application's start up path. Which means, it will read/write files from program files location eventually.

    Now my application creates few files in the application's startup location and reads it when needed.

    My application runs fine from program files folder location. I am able to create a file, but i cannot locate it manually.
    I know this happens because of the File System Virtualization feature in Windows Vista.
    If I look at the path I can see that this has been created in the user profile with the same path under the VirtualStore directory.

    So here is the question i want to ask you people, which is the best location to create and access files relevant to the application. These files are temporary and again created by the application. Is it safe to access files created in the VirtualStore directory of the logged in user's profile ?

    I hope everyone can understand what i am upto..

    Thanks
    MMH

  2. #2
    Join Date
    Nov 2003
    Posts
    2,185

    Re: Accessing files in windows Vista.

    Application Data or maybe even the temp folder.

  3. #3
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Re: Accessing files in windows Vista.

    Thanks for your reply. I think i will go for Application Data folder...

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

Featured