How can I know my application's path?

  • Thread starter Thread starter Moosdau
  • Start date Start date
M

Moosdau

Hello everyone:

for example, if my application is in "c:\" , I want the app could
know that and tell me , then I close it and move it to "d:\" , when I
run it again, it could know where it is now.

How can I get this infomation?
Thanks so much!
 
In VB6 you would simply reference App.Path; in VB.Net I'm guessing the App
object still exists - look in the VB Compatibility namespace...

Chris
 
Thanks very much for your help (and so quickly..)!!!

I've tried to search for hours , but I still can't find it.

system.windows.forms
I will remember this namespace -- ^_^

Thanks again!!
 
Public G_ApplicationDirectory As String =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly.Location)


Moosdau ha scritto:
 
Back
Top