中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-09-25 23:39
共 47,813 主题排行 / 349,918 发帖 / 今日 0 篇 / 48,275 会员排行
DOS批处理 & 脚本技术(批处理室) » 有没有和服务器时间进行校对的命令或者脚本?
可打印版本  957 / 1
第1楼 leewger 发表于 2007-10-13 11:09
初级用户 发帖 9 积分 26
有没有和服务器时间进行校对的命令或者脚本?
一台客户端,怎么样可以用开机批处理和服务器对时?
比如服务器是192.168.1.1,客户端是192.168.1.10
第2楼 HAT 发表于 2007-10-13 11:56
版主 发帖 5,017 积分 9,023
查看服务器时间:
C:\>net time /?
The syntax of this command is:


NET TIME
| /RTSDOMAIN]
/QUERYSNTP
/SETSNTP


修改本机时间:
C:\>time /?
Displays or sets the system time.

TIME

Type TIME with no parameters to display the current time setting and a prompt
for a new one. Press ENTER to keep the same time.

If Command Extensions are enabled the TIME command supports
the /T switch which tells the command to just output the
current time, without prompting for a new time.
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023