China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-03 17:11
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Modify system time with batch processing. View 2,088 Replies 8
Original Poster Posted 2007-03-02 19:54 ·  中国 广东 东莞 电信
新手上路
Credits 18
Posts 6
Joined 2007-03-01 04:37
19-year member
UID 80446
Gender Male
Status Offline
The client machine times in our internet café are inconsistent. Originally, the overnight time is from 12 PM to 8 AM. But the client machine is already at 24:00, while the cash register is still 2 minutes behind. As a result, customers log off before 8 AM and are charged per hour. The customers are very unhappy and I also feel sorry for them. Could any expert please write a batch script to adjust the time to be consistent with the cash register? Thanks!
Floor 2 Posted 2007-03-02 19:58 ·  中国 广东 茂名 电信
新手上路
Credits 18
Posts 6
Joined 2007-03-02 16:10
19-year member
UID 80575
Gender Male
Status Offline
Floor 3 Posted 2007-03-03 10:29 ·  中国 四川 成都 电信
新手上路
Credits 10
Posts 4
Joined 2007-03-03 09:52
19-year member
UID 80653
Gender Male
Status Offline
Install a system of version 2000 or higher on the cash register. After the client machine starts, just execute `net time \\cash_register_IP /set /yes`.
Floor 4 Posted 2007-03-03 10:37 ·  中国 江西 上饶 电信
中级用户
★★
Credits 274
Posts 119
Joined 2006-10-17 09:48
19-year member
UID 66098
Status Offline
net time \\ip /set /y
Floor 5 Posted 2007-03-03 11:20 ·  中国 浙江 绍兴 电信
高级用户
★★★
Autowalk
Credits 845
Posts 375
Joined 2007-03-03 01:58
19-year member
UID 80606
Gender Male
Status Offline
Then how can we make the client run the net time command every time it connects to the server?
Floor 6 Posted 2007-03-03 13:39 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
Save the above as "Synchronize Time.CMD" and then put it in the startup of the following machine.
学无尽止
Floor 7 Posted 2007-03-04 09:48 ·  中国 浙江 绍兴 电信
高级用户
★★★
Autowalk
Credits 845
Posts 375
Joined 2007-03-03 01:58
19-year member
UID 80606
Gender Male
Status Offline
What if the network isn't connected when starting up?
Floor 8 Posted 2007-03-04 11:08 ·  中国 四川 内江 资中县 电信
新手上路
Credits 8
Posts 3
Joined 2006-07-27 14:12
20-year member
UID 59359
Status Offline
You can use the delay command.
Floor 9 Posted 2007-03-07 17:00 ·  中国 广东 东莞 电信
新手上路
Credits 18
Posts 6
Joined 2007-03-01 04:37
19-year member
UID 80446
Gender Male
Status Offline
There are more than 400 machines. How long would it take to put them one by one? Also, it's troublesome to uninstall the restore.
Forum Jump: