Finding the time on a remote machine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
Could someone please guide me on how to write an application to access the
time on a remote machine on my LAN.
What I want to do is a csharp equivalent to what the command "net
time\\nameof the computer" in cmd.

Thank You
 
I don't know whether there's a proper ".Net way" to do this, but you could
always use PInvoke to call the API function NetRemoteTOD. If you want to go
this way I have some sample code in C++ that may be useful - email me off
list if you want it.

Chris Jobson
 
Back
Top