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.
Const cstrN As String = "C:\MYTIME.TXT"
Const cstrD As String = "YYYY-MMM-DD HH:NN"
Const cstrS As String = "SERVERNAME"
Dim lngR As Long
Dim intF As Integer
Dim strX As String
' Shell Command.com to get time to a file in root dir
lngR = Shell("COMMAND.COM /C NET TIME \\" & cstrS & " > " & cstrN)
' Open file and read in text
intF = FreeFile
Open cstrN For Input As #intF
Line Input #intF, strX
Close intF
' Search for the " is " - date and time follows
lngR = InStr(1, strX, " is ")
' Show date reformatted, just to show it worked
strX = Format(Mid(strX, lngR + 4), cstrD)
MsgBox strX
Dim strX As String