Resource Directory VB.NET 2005

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

I need to access a text document in the folder where my project is stored,
does anyone know how I can tell were the folder is from within a form.

Like me.myDirectory or something like it ?
 
Just Me,

I would create a registry property from that, others will use a config.file

Cor
 
I just used "../../" in the end. Thanks


Cor Ligthert said:
Just Me,

I would create a registry property from that, others will use a
config.file

Cor
 
Hi

If i understnd what you want to find the application path you can use

Dim fullPath As String =
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
then where ever the application is installed you will always be ok

Roger
 
JustMe,

You can also take a look at Application.StartupPath

Bruce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top