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
  1. Home
  2. General Programming
  3. C#
  4. How to get ConfigurationSettings for multiple users

How to get ConfigurationSettings for multiple users

Scheduled Pinned Locked Moved C#
csharpxmltutorialquestionworkspace
3 Posts 2 Posters 5 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.
  • A Offline
    A Offline
    Asad Hussain
    wrote on last edited by
    #1

    Hi, I wanted to know how to get my C# application to have separate configuration files for each user on the same machine. I have an application called 'myapp.exe' that needs to store user-specific configuration information, preferably in the 'ROOT:\\documents and settings\\application data\myapp\useroptions.xml'. I know I can use ConfigurationSettings.Appsettings to read the 'myapp.exe.config' file and get application settings that way but that file must reside in the application folder. Any ideas?

    T 1 Reply Last reply
    0
    • A Asad Hussain

      Hi, I wanted to know how to get my C# application to have separate configuration files for each user on the same machine. I have an application called 'myapp.exe' that needs to store user-specific configuration information, preferably in the 'ROOT:\\documents and settings\\application data\myapp\useroptions.xml'. I know I can use ConfigurationSettings.Appsettings to read the 'myapp.exe.config' file and get application settings that way but that file must reside in the application folder. Any ideas?

      T Offline
      T Offline
      tdciDoug
      wrote on last edited by
      #2

      http://msdn.microsoft.com/msdnmag/issues/05/04/AdvancedBasics/default.aspx[^] This is written for VB.NET, but you should have no trouble using it in C#...the information in the article is what you want anyways. Good luck Have a wonderful evening Doug Wright Developer, TDCI

      A 1 Reply Last reply
      0
      • T tdciDoug

        http://msdn.microsoft.com/msdnmag/issues/05/04/AdvancedBasics/default.aspx[^] This is written for VB.NET, but you should have no trouble using it in C#...the information in the article is what you want anyways. Good luck Have a wonderful evening Doug Wright Developer, TDCI

        A Offline
        A Offline
        Asad Hussain
        wrote on last edited by
        #3

        suhweet!!!!

        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