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.
Public Declare Function GetShortPathName Lib "kernel32" _
Alias "GetShortPathNameA" ( _
ByVal lpszLongPath As String, _
ByVal lpszShortPath As String, _
ByVal cchBuffer As Long) _
As Long
Public Function GetShortPath(strFileName As String) As String
Dim lngReturnCode As Long
Dim strPath As String * 255
lngReturnCode = GetShortPathName(strFileName, strPath, 255)
GetShortPath = Left(strPath, lngReturnCode)
End Function
FileName = "C:\MyDocu~1\" + PrtNum.Text + ".TXT"
If Dir(FileName) <> "" THen
Dim MQL As String
MQL = "set context user " & SETUSER & " password " & SETPASS & ";" & vbCrLf & _
"checkin businessobject Note " & PrtNum & " " & REV & " '" & FileName & "';" & vbCrLf & _
"quit;" & vbCrLf
Open "C:\Temp\RUNMQL.TXT" For Output As #1
Print #1, MQL
Close #1
Open "C:\Temp\RUNMQL.BAT" For Output As #1
Print #1, "start /WAIT C:\EMATRIX\BIN\WINNT\MQL.EXE -stdin:c:\Temp\RUNMQL.TXT"
Close #1
retval = Shell("C:\Temp\RUNMQL.BAT", vbNormalFocus)
End If