中国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-08-03 23:58
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How to modify timeout=30 in boot.ini
Printable Version  1,668 / 11
Floor1 cxfaa Posted 2007-01-16 12:31
初级用户 Posts 23 Credits 64
What batch command can be used to change timeout=30 to timeout=5

Original text

timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT

multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect

[ Last edited by cxfaa on 2007-1-15 at 11:36 PM ]
Floor2 Eblis Posted 2007-01-16 12:32
中级用户 Posts 108 Credits 251 From 湖南==>广州
Post and search. There are many such posts in the forum.. Be careful the moderator will deduct your points.
Floor3 electronixtar Posted 2007-01-16 12:39
铂金会员 Posts 2,672 Credits 7,493
Everyone can deduct points. For example, like this
Floor4 mqi Posted 2007-01-17 00:40
初级用户 Posts 11 Credits 28
type c:\boot.ini>c:\boot.bak
attrib -h -r -s c:\boot.ini
type c:\boot.bak|find "boot loader" /i>c:\boot.ini
echo timeout=5 >>c:\boot.ini
type c:\boot.bak|find "boot loader" /i /v|find "timeout" /i /v>>c:\boot.ini
attrib +s +r +h c:\boot.ini
Floor5 aazz555 Posted 2007-01-17 01:31
初级用户 Posts 7 Credits 17
I tried, the time of boot.ini was changed. boot.bak is still the original time. No change.
Floor6 lockingxp Posted 2007-01-17 10:20
初级用户 Posts 15 Credits 30
Everyone can deduct points, for example like this
Floor7 zhenfu Posted 2007-01-17 13:48
中级用户 Posts 21 Credits 204
Originally posted by aazz555 at 2007-1-17 01:31 AM:
I tried, the time of boot.ini was changed. But BOOT.BAK is still the original time. There is no change.


BOOT.BAK is for temporary use, you don't need it at all. It's just that the program upstairs didn't delete it after execution. What does BOOT.BAK have to do with you using boot.ini
Floor8 electronixtar Posted 2007-01-18 00:23
铂金会员 Posts 2,672 Credits 7,493
This is a menstrual post~~~~How many results will be found by searching boot.ini?
Floor9 dikex Posted 2007-01-18 06:07
高级用户 Posts 366 Credits 788
Under Windows XP, you can use the bootcfg command to modify.

BOOTCFG /Timeout seconds
Floor10 tao0610 Posted 2007-01-18 06:14
高级用户 Posts 218 Credits 579
...combat the three evil forces?
Floor11 samual2004 Posted 2007-01-18 08:00
初级用户 Posts 13 Credits 30

type c:\boot.ini>c:\boot.bak
rem The above statement for boot.bak is to create a temporary file for subsequent use.
rem (This file serves to save boot.ini, and that's all)
attrib -h -r -s c:\boot.ini
rem Remove the attributes h, s, r; otherwise, how to modify it?
type c:\boot.bak|find "boot loader" /i>c:\boot.ini
rem Restore the first line of the original file
echo timeout=5 >>c:\boot.ini
rem Modifying the timeout is the goal of this batch processing.
type c:\boot.bak|find "boot loader" /i /v|find "timeout" /i /v>>c:\boot.ini
rem Write down the lines except those with "boot" and "timeout", then restore the attributes,
rem The batch processing is done.
attrib +s +r +h c:\boot.ini

mqi This friend specially wrote this batch processing with a good idea
Still to make you guys extremely angry...
I'm really confused when I see it.


[ Last edited by samual2004 on 2007-1-18 at 08:07 AM ]
Floor12 6622186 Posted 2007-04-01 12:12
高级用户 Posts 411 Credits 894
Originally, you can use two |.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023