devxlogo

Getting Application’s Starting Path with the App Object

Getting Application’s Starting Path with the App Object

Question:
When starting a VB program and I load the starting form, I wantto get the directory from the active program. How do I get thedirectory name?

Answer:
The Path property of the App object contains the starting directory for the application.

   MyPath$ = App.Path

devx-admin

Share the Post: