16.txt

来自「VB实用技巧124则之1-62则 为了使每包文件个数少于65(获得更快的解压速」· 文本 代码 · 共 13 行

TXT
13
字号
保证连网计算机时间同步

执行命令:
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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?