Feb 13, 2002 #1 adimulam Programmer Feb 13, 2002 25 US Is there any Visula Basic function that gives the time on a remote computer if I supply name of the computer or IP address?
Is there any Visula Basic function that gives the time on a remote computer if I supply name of the computer or IP address?
Feb 15, 2002 #2 Mossoft Programmer Sep 12, 2001 127 EU You could try using the 'NET TIME' command in a dos window i.e. Shell to it, pipe the results to a text file then read the file. Call Shell("NET TIME \\WorkstationID > C:\RMT_TIME.TXT" ) Open "C:\RMT_TIME.TXT" for input as #1 etc... M Upvote 0 Downvote
You could try using the 'NET TIME' command in a dos window i.e. Shell to it, pipe the results to a text file then read the file. Call Shell("NET TIME \\WorkstationID > C:\RMT_TIME.TXT" ) Open "C:\RMT_TIME.TXT" for input as #1 etc... M