Skip to content

Saving User Preferences

Chris

Asked May 24, 2006, 2:32 PM EDT1 answer
Share
LinkedInX
I am writing a piece of software in VB .NET 2002 and I need to save user settings. I want the settings to be accessible (read) by any account (Administrator -> Guest). I do not need all accounts to be able to modify the preferences. I have tried the Registry but only certain users can access the variables. I have used .txt/.dat/.xml files in the and the C:\Documents and Settings\All Users\Application Data\MYCOMPANY\MYSOFTWARE\     folder but the files cannot be read by all users. I can make it so that each users had their own preferences but I do not want to do that.

Any advice would be great.

Thanks

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    Why don't you create a local XML file and keep all preferences in that file. In that case, the file is accessible to your application, no matter what user is using it. Also, I am not sure why configuration values are not accessible to all users. These are accessible to your application so you don't worry about user types.
    0