Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Attribute VB_Name = "Module1"
DefLng A-Z
Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (ByVal lpFileName As String, ByVal nBufferLength As Long, ByVal lpBuffer As String, ByVal lpFilePart As String) As Long
Sub main()
ret = splitpath("c:\autoexec.bat", path$, longfilnam$)
MsgBox path$
End Sub
Function splitpath(fil$, path$, longfilnam$)
Static buf As String * 261, dummy As String * 20
' returns -1 as Long for error
path$ = "": splitpath = -1
longfilnam$ = Dir$(fil$)
If 0 = Len(longfilnam$) Then Exit Function
k = GetFullPathName(fil$ + Chr$(0), 260, buf, dummy)
If k Then _
path$ = Left(buf, k - Len(longfilnam$)): _
splitpath = 0
End Function