#include <Constants.au3>
Local $foo = Run(@ComSpec & " /c net time \\172.16.0.1", @SystemDir, @SW_HIDE,$STDOUT_CHILD)
Local $line
While 1
$line = StdoutRead($foo)
If @error Then ExitLoop
If StringInStr($line,"时间是") Then
$servertime = StringRegExp($line,"\d*-\d*-\d* \d*:\d*",3);简单规则
ExitLoop
EndIf
Wend