中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-06 02:59
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 有没有和服务器时间进行校对的命令或者脚本? 查看 849 回复 1
楼 主 有没有和服务器时间进行校对的命令或者脚本? 发表于 2007-10-13 11:09 ·  中国 湖北 武汉 电信
初级用户
积分 26
发帖 9
注册 2007-08-09 21:02
18年会员
UID 94897
性别 男
状态 离线
一台客户端,怎么样可以用开机批处理和服务器对时?
比如服务器是192.168.1.1,客户端是192.168.1.10
2 发表于 2007-10-13 11:56 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
查看服务器时间:
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.
论坛跳转: