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-10 11:04
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make the bat stop running over time! View 2,577 Replies 17
Original Poster Posted 2008-10-16 16:46 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
初级用户
Credits 78
Posts 39
Joined 2008-06-20 06:03
18-year member
UID 120614
Gender Male
Status Offline
How to make the bat stop running with time! Permanently freeze the time at a set time and prevent the time from being changed!!
Also, how to make the system pop up a prompt box and display specified content!?
Floor 2 Posted 2008-10-16 17:39 ·  中国 山东 济南 联通
高级用户
★★★
Credits 959
Posts 474
Joined 2007-10-25 10:40
18-year member
UID 100716
Gender Male
Status Offline
How to make the bat stop running with time! Make the time permanently fixed at a set time and not allow the time to be changed! What do you mean by this sentence? Also, how to make the system pop up a prompt box and display the specified content!? Use VBS to do it, BAT cannot be implemented
Floor 3 Posted 2008-10-16 17:44 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
初级用户
Credits 78
Posts 39
Joined 2008-06-20 06:03
18-year member
UID 120614
Gender Male
Status Offline
How to specifically do VBS? Can you give an example?

Do not allow changing the time. For example, I want that my computer to always be 2008 - 07 - 07. The time is 8:50. Freeze at this. The time does not go down. Whenever boot up is this time
Floor 4 Posted 2008-10-16 17:57 ·  中国 广东 广州 电信
高级用户
★★★
潜水修练批处理
Credits 788
Posts 366
Joined 2006-12-31 02:43
19-year member
UID 75048
Gender Male
Status Offline
1. It's impossible to stop time. Time is directly based on the mainboard, having nothing to do with the operating system, etc. Unless you remove the mainboard battery after powering off, but when you reinstall the battery and boot up, the time will be the factory setting.

2. Use this for batch processing:
msg "%username%" "Hello"

[ Last edited by dikex on 2008-10-16 at 17:58 ]
正在潜水修练的批处理小白
Floor 5 Posted 2008-10-16 18:01 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
初级用户
Credits 78
Posts 39
Joined 2008-06-20 06:03
18-year member
UID 120614
Gender Male
Status Offline
msg "%username%" "Hello" This will show who sent you the message. Can you hide the sender's ID? Then is there such a thing as monitoring the time? As long as the time changes, change the time back to the original set time. This is just my assumption!
Floor 6 Posted 2008-10-19 08:43 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
初级用户
Credits 78
Posts 39
Joined 2008-06-20 06:03
18-year member
UID 120614
Gender Male
Status Offline
Can someone help me?
Floor 7 Posted 2008-10-19 11:37 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
No. Because batch processing is not for this.
Floor 8 Posted 2008-10-20 00:54 ·  中国 广西 桂林 电信
新手上路
Credits 9
Posts 7
Joined 2008-10-07 18:58
17-year member
UID 127686
Gender Male
Status Offline
date 2008-07-07&time 08:05
%0

First post from a newbie :)
Floor 9 Posted 2008-10-22 17:31 ·  中国 北京 鹏博士BGP
新手上路
Credits 12
Posts 11
Joined 2008-10-16 18:32
17-year member
UID 128565
Gender Male
Status Offline
Unless you run a batch file every time you boot up, and set the time in the batch file to this~.~
Floor 10 Posted 2008-10-22 17:37 ·  中国 广东 深圳 罗湖区 电信
新手上路
Credits 19
Posts 13
Joined 2008-10-21 13:17
17-year member
UID 128951
Gender Male
Status Offline
If you start up in time and run it, you can only change the time, but not freeze it. Unless you run it once a minute
Floor 11 Posted 2008-10-22 17:47 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
The key is that the original poster requires that the time not be modified.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 12 Posted 2008-11-10 01:26 ·  中国 广东 梅州 电信
新手上路
Credits 15
Posts 13
Joined 2008-10-29 19:56
17-year member
UID 129493
Gender Male
Status Offline
for /L %%F in (1,0,2) do time 16:05:00




16:05:00 You specifically modify it to your specified time
I'm a newbie and don't understand the meaning of the command. It can indeed stop the time, but the CPU...
Floor 13 Posted 2008-11-10 03:42 ·  中国 广东 广州 电信
初级用户
Credits 59
Posts 46
Joined 2007-04-10 00:25
19-year member
UID 84529
Gender Male
Status Offline
It's根本 impossible to stop the passage of time~ If you keep setting the time to a specified one~ Then heh heh~ CPU... Is it worth it?
Floor 14 Posted 2008-11-10 03:45 ·  中国 广东 广州 电信
初级用户
Credits 59
Posts 46
Joined 2007-04-10 00:25
19-year member
UID 84529
Gender Male
Status Offline
Prompt can use VBS

Echo MsgBox "Hello">1.vbs&start 1.vbs
Floor 15 Posted 2008-11-12 11:42 ·  中国 广东 梅州 电信
新手上路
Credits 15
Posts 13
Joined 2008-10-29 19:56
17-year member
UID 129493
Gender Male
Status Offline
for /L %%F in (1,0,2) do time 16:05:00

Have you tried this?
Forum Jump: