保证连网计算机时间同步
执行命令:
net time "\\OhterComputerName" /set /yes 可以保证名称为OhterComputerName 的计算机与本机时间同步。
Public Sub SyncTime()
Dim thecomp As String
Dim theshell As String
thecomp = "\\computername"
theshell = "net time " & Chr(34) & thecomp & Chr(34) & " /set /yes"
x = Shell(theshell)
End Sub
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系
editor@qudong.com。
本文价值
★★★★★
—
成为第一个评分的人
登录后为本文打分
评论加载中…