App.Path for VB.NET/ASP.NET

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
There are a number of ways to get the app.path in VB.NET. This particular method works for VB.NET (including windows forms applications and .dlls) and ASP.NET. Unlike app.path in vb6, this includes the the "\" at the end of the value.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: