Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CommonApplicationData
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01352898
Message ID:
01353090
Vues:
27
>>>I don't have a Vista box available right now. Where does the following code point to on Vista:
>>>System.Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
>>>
>>>On XP it points to: C:\documents and settings\all users\application data\
>>>
>>>I want to write my application config file there.
>>>
>>>Thanks,
>>>Einar
>>
>>
>>C:\ProgramData
>>
>
>Thanks Gregory. Do you know if that folder (and subfolders) is read/write for all users?
____
Einar,

I cannot give you a simple yes/no answer

Seems like you'll have to modify the access rights of your app's subdirectory
[ an installer allows you to do that ]

eg:
- C:\ProgramData\Microsoft\OFFICE\DATA is writable for every one
- C:\ProgramData\Adobe doesn't seem te be writable for everyone

(it's a pain in the neck)

http://msdn.microsoft.com/en-us/library/ms995853.aspx
CSIDL_COMMON_APPDATA 
This folder should be used for application data that is not user specific. For example, an application may store a spell check dictionary, a 
database of clip-art or a log file in the CSIDL_COMMON_APPDATA folder. This information will not roam and is available to anyone using the 
computer. By default, this location is read-only for normal (non-admin, non-power) Users. If an application requires normal Users to have write
 access to an application specific subdirectory of CSIDL_COMMON_APPDATA, then the application must explicitly modify the security on that 
sub-directory during application setup. The modified security must be documented in the Vendor Questionnaire. 
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform