VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Allows you to determine the path of the EXE file in .Net since you cannot use the app.path feature

by Josh Parks (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 29th April 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Allows you to determine the path of the EXE file in .Net since you cannot use the app.path feature anymore.

Rate Allows you to determine the path of the EXE file in .Net since you cannot use the app.path feature



'anymore, you will need to find a way to work around it.  This code here will
'let you get around that issue.

Dim AppPath As String
Dim pth As Path 
Dim PathString As String


AppPath = System.Reflection.Assembly.GetExecutingAssembly.Location

PathString = pth.GetDirectoryName(AppPath)

Download this snippet    Add to My Saved Code

Allows you to determine the path of the EXE file in .Net since you cannot use the app.path feature Comments

No comments have been posted about Allows you to determine the path of the EXE file in .Net since you cannot use the app.path feature . Why not be the first to post a comment about Allows you to determine the path of the EXE file in .Net since you cannot use the app.path feature .

Post your comment

Subject:
Message:
0/1000 characters