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-06-24 11:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Batch script to modify the system startup wait time View 1,516 Replies 9
Original Poster Posted 2008-03-04 22:15 ·  中国 陕西 汉中 电信
初级用户
Credits 136
Posts 49
Joined 2007-01-04 08:28
19-year member
UID 75413
Gender Male
Status Offline
Maybe your computer has Windows 9X and Windows XP coexisting. Users can completely reduce the time when the Windows XP operating system is displayed in the operating system list during startup. Please click "Start" → "Run", enter "msconfig" to open the "System Configuration Utility" → "BOOT.INI", and change the timeout setting to the time you want. If you are a loyal user of the Windows XP operating system, the author suggests that you can completely set the startup waiting time to 5 seconds. Or right-click "My Computer" → "Properties" → "Advanced", click "Settings" in "Startup and Recovery", you can set the time to display the operating system list, and click "Edit" to manually edit the startup options, change timeout=30 to timeout=5.

Can the above modification method be implemented with code or the registry

───────────────── Moderation Record ─────────────────
Performed: HAT
Operation: Added search keywords to the post title
Description: The original title "Batch processing to modify the system startup item" is not conducive to forum search
───────────────── Moderation Record ─────────────────


[ Last edited by HAT on 2008-9-27 at 12:19 ]
Floor 2 Posted 2008-03-04 23:15 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
timeout=30 is actually in C:\boot.ini and has nothing to do with the registry. How to change it? There is another way, in XP CMD, bootcfg /timeout 5
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
plp626 +4 2008-03-05 00:38
beeny +2 2008-03-05 14:22
第一高手 第二高手

Floor 3 Posted 2008-03-05 00:38 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Hehe, didn't notice, strong.
Floor 4 Posted 2008-03-05 01:11 ·  中国 河北 石家庄 桥西区 联通
初级用户
Credits 54
Posts 28
Joined 2006-10-16 14:23
19-year member
UID 65980
Gender Male
Status Offline
There are many tutorials, the original poster search it.
Floor 5 Posted 2008-03-05 12:37 ·  中国 福建 福州 联通
高级用户
★★
Credits 581
Posts 277
Joined 2006-12-23 05:10
19-year member
UID 74328
Gender Male
Status Offline
You learn enough in a lifetime.

bootcfg is wonderful
Floor 6 Posted 2008-03-05 14:23 ·  中国 陕西 汉中 电信
初级用户
Credits 136
Posts 49
Joined 2007-01-04 08:28
19-year member
UID 75413
Gender Male
Status Offline
Thanks! Super practical! If you only modify one machine, it won't work, but if you need to modify multiple machines, just double-click!
Floor 7 Posted 2008-03-05 16:50 ·  中国 湖北 武汉 电信
初级用户
Credits 40
Posts 18
Joined 2006-02-22 22:33
20-year member
UID 50796
Status Offline
for /f "delims=" %%a in (bootini) do (@echo %%a | find /i /v "time" >>boot.ini|| @echo timeout=5 >>boot.ini)
The landlord can try this. I used it when I originally installed the second system for XP. After removing the timeout line in boot.ini, add timeout=5.
Floor 8 Posted 2008-03-05 16:53 ·  中国 湖北 武汉 电信
初级用户
Credits 40
Posts 18
Joined 2006-02-22 22:33
20-year member
UID 50796
Status Offline
c:
cd\
if exist bootini attrib bootini -s -h -r & del bootini /q
attrib boot.ini -s -h -r
ren boot.ini bootini
for /f "delims=" %%a in (bootini) do (@echo %%a | find /i /v "time" >>boot.ini|| @echo timeout=3 >>boot.ini)
echo C:\GRLDR="Start GRUB" >>boot.ini
attrib boot.ini +s +r +h
del boot.bat

The last sentence is used to delete itself

[ Last edited by wubozh on 2008-3-5 at 04:56 PM ]
Floor 9 Posted 2008-03-05 22:35 ·  中国 陕西 汉中 电信
初级用户
Credits 136
Posts 49
Joined 2007-01-04 08:28
19-year member
UID 75413
Gender Male
Status Offline
Learned!
But using BOOTCFG /TIMEOUT 3 is much faster
Floor 10 Posted 2008-03-06 09:51 ·  中国 湖北 武汉 电信
初级用户
Credits 40
Posts 18
Joined 2006-02-22 22:33
20-year member
UID 50796
Status Offline
This is an automatic installation batch script I made for installing the DOS system with GRUB on XP. It uses the script function of WinRAR. Besides changing timeout=30 to 3, it also needs to add the call command for the DOS system after boot.ini: echo C:\GRLDR="Start GRUB" >>boot.ini. In this case, bootcfg=5 cannot be realized. If it's just to change the waiting time to 3, indeed yours is more convenient.
Forum Jump: