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
 
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
 
Back
Top