leonepaolo
Programmer
Hi,
I trying to create a program that'll run off a USB drive and as such I won't always know the path of the application.
I tried a couple of the methods on this site but I must be missing a reference. I'm really hoping for a simple straight forward solution as I'm not sharing the data.
Borvik posted:
Public Function Path() As String
'App.Path
Return System.AppDomain.CurrentDomain.BaseDirectory
End Function
and followed it up with
Imports System.Reflection.Assembly
I have no idea how to merge the two.
Also, I get variable not defined errors and the code shows up in red.
I'd really appreciate any comments or recommendations.
Thanks in advance,
Paolo
I trying to create a program that'll run off a USB drive and as such I won't always know the path of the application.
I tried a couple of the methods on this site but I must be missing a reference. I'm really hoping for a simple straight forward solution as I'm not sharing the data.
Borvik posted:
Public Function Path() As String
'App.Path
Return System.AppDomain.CurrentDomain.BaseDirectory
End Function
and followed it up with
Imports System.Reflection.Assembly
I have no idea how to merge the two.
Also, I get variable not defined errors and the code shows up in red.
I'd really appreciate any comments or recommendations.
Thanks in advance,
Paolo