中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-27 07:39
47,813 topics / 349,918 posts / today 0 new / 48,276 members
DOS批处理 & 脚本技术(批处理室) » Batch script to modify the system startup wait time
Printable Version  1,638 / 9
Floor1 beeny Posted 2008-03-04 22:15
初级用户 Posts 49 Credits 136
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 ]
Floor2 fastslz Posted 2008-03-04 23:15
铂金会员 Posts 2,315 Credits 5,493 From 上海
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
Floor3 plp626 Posted 2008-03-05 00:38
银牌会员 Posts 1,020 Credits 2,278
Hehe, didn't notice, strong.
Floor4 lzys Posted 2008-03-05 01:11
初级用户 Posts 28 Credits 54
There are many tutorials, the original poster search it.
Floor5 suntb Posted 2008-03-05 12:37
高级用户 Posts 277 Credits 581
You learn enough in a lifetime.

bootcfg is wonderful
Floor6 beeny Posted 2008-03-05 14:23
初级用户 Posts 49 Credits 136
Thanks! Super practical! If you only modify one machine, it won't work, but if you need to modify multiple machines, just double-click!
Floor7 wubozh Posted 2008-03-05 16:50
初级用户 Posts 18 Credits 40
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.
Floor8 wubozh Posted 2008-03-05 16:53
初级用户 Posts 18 Credits 40
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 ]
Floor9 beeny Posted 2008-03-05 22:35
初级用户 Posts 49 Credits 136
Learned!
But using BOOTCFG /TIMEOUT 3 is much faster
Floor10 wubozh Posted 2008-03-06 09:51
初级用户 Posts 18 Credits 40
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023