How to open and read an App.config file in

Posted on 2014-08-22
Last Modified: 2014-09-10
Can I create a windows app using visual basic to open an another apps App.config file?  Must of my serchers on the web,
show using XML.
Question by:N2435

    Author Comment

    My question is very close to the "Recursive File Searching In VB.NET" Asked On2007-07-16 Asked by: gcz
    Solved by: m_renaud

    In my case there will be no user enterface.  My application will be part of updating the clients new version names of
    MS Access applications (currently have 48 different Access apps). Hopefullly my new application will:
              a) MY application wiil start
              b)  read an app. config file.  The app.config will exist  in the same directory as the application.
              c)  Application will then open MS Access application as indicated in the app.config file.
    LVL 40

    Expert Comment

    by:Jacques Bourgeois (James Burger)
    Must of my serchers on the web, show using XML.

    This is because .config files are XML files. So what you found in your searches is probably OK.
    LVL 83

    Accepted Solution

    You can use the ConfigurationManager class and use its OpenExeConfiguration method to load the app.config file

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now