Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for the time

Status
Not open for further replies.
Sep 26, 2002
65
US
How can I check the time on another computer that is networked to the computer running the VB application?

Thanks -
bw
 
Hi,

There's probably a cleverer way of doing it, but you could always create an empty file on the networked machine and then see what the date and time of the file is, it will be the date and time of the computer.

- Andy.
 
I appreciate your response. I guess I should have been more specific in my environment -- there are about 20 computers (and in the near future there will be more) running this application. So, creating the empty file would work if there was one computer running the app, but with multiple computers I forsee problems.
 
im not sure if this will work but you could try:-

NetRemoteTOD (Netapi32.dll)

good luck

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top