Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Vista file access

Vista file access

Scheduled Pinned Locked Moved C#
helpcsharpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brain2cpu
    wrote on last edited by
    #1

    Hi all, this is not a clear C# problem, but the program is in C# and can't find a better place to ask. So, the application have to maintain some documents, every user logging in must see and edit any of documents. My problem is: where to store these files? Until XP we used Program files\AppDir\Docs folder, but in Vista this not works. User's personal folders can't be used either. Please help with a good ideea/information Thanks

    M P D 3 Replies Last reply
    0
    • B brain2cpu

      Hi all, this is not a clear C# problem, but the program is in C# and can't find a better place to ask. So, the application have to maintain some documents, every user logging in must see and edit any of documents. My problem is: where to store these files? Until XP we used Program files\AppDir\Docs folder, but in Vista this not works. User's personal folders can't be used either. Please help with a good ideea/information Thanks

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Hi! System.Environment.SpecialFolder.CommonApplicationData (or rather a subdirectory thereof) is the right folder for you.

      Regards, mav -- Black holes are the places where God divided by 0...

      1 Reply Last reply
      0
      • B brain2cpu

        Hi all, this is not a clear C# problem, but the program is in C# and can't find a better place to ask. So, the application have to maintain some documents, every user logging in must see and edit any of documents. My problem is: where to store these files? Until XP we used Program files\AppDir\Docs folder, but in Vista this not works. User's personal folders can't be used either. Please help with a good ideea/information Thanks

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        You could always use the IsolatedStorage classes.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        1 Reply Last reply
        0
        • B brain2cpu

          Hi all, this is not a clear C# problem, but the program is in C# and can't find a better place to ask. So, the application have to maintain some documents, every user logging in must see and edit any of documents. My problem is: where to store these files? Until XP we used Program files\AppDir\Docs folder, but in Vista this not works. User's personal folders can't be used either. Please help with a good ideea/information Thanks

          D Offline
          D Offline
          David Knechtges
          wrote on last edited by
          #4

          We have just run into this same issue. We are now storing the docs under All Users\Application Data. This works for Win2000, XP, 2003 and Vista. Under Vista, this is redirected through a junction to the folder c:\ProgramData. If you want backward compatibility, use the All Users\Application Data path, otherwise, you could use the ProgramData path. David

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups