Advertisement

04.12.2008 at 12:47PM PDT, ID: 23317678
[x]
Attachment Details

Referencing Relative Project Path

Asked by ITApprendista in Windows Forms for .Net, Microsoft Visual Basic.Net

Tags: VB.Net, Windows Forms

This seems like a very basic thing, but I can't seem to figure out how you would reference a file stored in the same directory as the project executable.  

I am creating a custom app that needs to pull settings data out of an Xml file.  But how can I reference this file if it's location varies depending on where the project was installed to?  

The xml file will always be in the same folder as the project executable.Start Free Trial
[+][-]04.12.2008 at 06:03PM PDT, ID: 21343168

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 06:06PM PDT, ID: 21343175

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows Forms for .Net, Microsoft Visual Basic.Net
Tags: VB.Net, Windows Forms
Sign Up Now!
Solution Provided By: oleggold
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.12.2008 at 08:18PM PDT, ID: 21343432

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628