By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

App.Path

P: n/a
Is there any alternative to App.Path in VB .NET?

Also App.Major/Minor/Revision?

Thanks in advance!
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Application.StartupPath, Application.Version. Application does not
alway return the right result. Here is what i use.

Public Function AppPath() As String

Return
System.IO.Path.GetDirectoryName(Reflection.Assembl y.GetEntryAssembly().Location)

End Function

Ken
--------------------
"Ash Phillips" <as*@expwin.net> wrote in message
news:Oi**************@TK2MSFTNGP09.phx.gbl...
Is there any alternative to App.Path in VB .NET?

Also App.Major/Minor/Revision?

Thanks in advance!

Nov 21 '05 #2

P: n/a
Also don't forget to use:

Imports System.IO
Imports System.Reflection

It seems if I leave those two out I end up with problems. Otherwise, Ken's
suggestion seems to work the best of all solutions .
james

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:eh**************@TK2MSFTNGP11.phx.gbl...
Hi,

Application.StartupPath, Application.Version. Application does
not
alway return the right result. Here is what i use.

Public Function AppPath() As String

Return
System.IO.Path.GetDirectoryName(Reflection.Assembl y.GetEntryAssembly().Location)

End Function

Ken
--------------------
"Ash Phillips" <as*@expwin.net> wrote in message
news:Oi**************@TK2MSFTNGP09.phx.gbl...
Is there any alternative to App.Path in VB .NET?

Also App.Major/Minor/Revision?

Thanks in advance!

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.