ryoulan 发表于 2009-10-18 20:54:15

怎样同时显示局网中某台机器的时间和本机时间?

本帖最后由 ryoulan 于 2009-11-26 22:13 编辑

怎样同时显示局网中某台机器的时间和本机时间?
形如:
Msgbox(0.""."本机时间" & _now() & "8号机时间" & $ Num8)

8号机ip :192.168.1.8

谢谢!


也许太简单,不值一提,可确实没解决

rikthhpgf2005 发表于 2009-11-4 10:29:25

做个时间客户端,传回时间

My2009 发表于 2010-6-21 13:19:33

时间客户端??能说的详细点不??

afan 发表于 2010-6-21 14:09:32

回复 3# My2009


    半年前的帖子……
不用客户端,用 net time 即可Local $ip = InputBox('', '请输入对方ip地址', '192.168.1.', ' m', 200, 100)
If @error Then Exit
Local $str = ''
Local $too = Run(@ComSpec & ' /c net time \\' & $ip, '', 0, 2)
While 1
        Sleep(1)
        $str &= StdoutRead($too)
        If @error Then ExitLoop
WEnd
If $str <> '' Then MsgBox(0, $ip, StringRegExpReplace($str, '(?s).+(\d{4}\/.+?)\r.+', '$1'))
页: [1]
查看完整版本: 怎样同时显示局网中某台机器的时间和本机时间?