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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top