批处理文件调用Internet时间服务器同步

//注意需要自己先设置好电脑同步服务器时间
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
net stop w32time
net start w32time
w32tm /resync

此批处理相关于点击调用下面图片中的立即同步

 

posted @ 2020-05-30 10:52  StarFox  阅读(1016)  评论(0编辑  收藏  举报