Get the executing application path
Get the executing application path
In VB.NET:
Dim aName As String
aName = _
System.Reflection.Assembly.GetExecutingAssembly. _
GetModules()(0).FullyQualifiedName
aPath = System.IO.Path.GetDirectoryName(aName)
'
' Or
'
aPath = System.Reflection.Assembly. _
GetExecutingAssembly.Location
OR
In C#:
System.Reflection.Assembly.GetExecutingAssembly().Location
By Perry Popularity (1650 Views)