Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Private Const MAX_PATH As Long = 260&
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" ( _
ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long
Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation _
As String, ByVal lpFile As String, ByVal lpParameters _
As String, ByVal lpDirectory As String, ByVal nShowCmd _
As Long) As Long
Private Sub prooflsch_Click()
Dim path As String
Dim strLfile As String
Dim strLpath As String
Dim strKpath As String
Dim strCpath As String
strLpath = App.path & "\data\"
strCpath = App.path & "\data"
strLfile = Text1(0).Text & ".pdf"
strKpath = strLpath & strLfile
path = Space(MAX_PATH)
Call GetShortPathName(strLpath & IIf(Right(strCpath, 1) = "\", "", "\") & _
strLfile, path, MAX_PATH)
If FileExist(strKpath) Then
Call ShellExecute(Me.hwnd, "Open", strKpath, "", App.path, 1)
End If
End Sub
Public Function FileExist(ByVal SPath As String) As Boolean
FileExist = (FileSystem.Dir(SPath) <> "")
End Function