Feb 13, 2002 #1 adimulam Programmer Joined Feb 13, 2002 Messages 25 Location 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 Joined Sep 12, 2001 Messages 127 Location 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