| :: Returns the full application path with the '\' terminator... |
Author |
David Costelloe |
Language |
VB5, VB6 |
Operating
Systems |
Windows 95, 98 and NT |
| Module |
Public Sub CheckPath(MyPath$) ' Adds the \ to the Application Path when required
MyPath$ = App.Path
If Not Right(MyPath$, 1) = "\" Then
MyPath$ = MyPath$ & "\"
End If
End Sub |
| Usage |
'Usage:
Private Sub Command1_Click()
Dim MyPath As String
Dim FileName As String
FileName = App.EXEName
Call CheckPath(MyPath$)
MsgBox "The location of: " & FileName & " is
" & MyPath$ & vbCrLf & " Full Path: " & MyPath$ &
FileName
End Sub |
|
 |
|
 |