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-04 01:02
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to modify timeout=30 in boot.ini View 1,669 Replies 11
Original Poster Posted 2007-01-16 12:31 ·  中国 福建 南平 中移铁通
初级用户
Credits 64
Posts 23
Joined 2007-01-16 05:01
19-year member
UID 76643
Gender Male
Status Offline
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 ]
Recent Ratings for This Post ( 4 in total) Click for details
RaterScoreTime
electronixtar -1 2007-01-16 12:39
lockingxp -1 2007-01-17 10:20
zhenfu -3 2007-01-17 13:49
tao0610 -1 2007-01-18 06:14
Floor 2 Posted 2007-01-16 12:32 ·  中国 广东 广州 白云区 电信
中级用户
★★
Credits 251
Posts 108
Joined 2007-01-07 11:33
19-year member
UID 75721
Gender Male
From 湖南==>广州
Status Offline
Post and search. There are many such posts in the forum.. Be careful the moderator will deduct your points.
Floor 3 Posted 2007-01-16 12:39 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Everyone can deduct points. For example, like this

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 4 Posted 2007-01-17 00:40 ·  中国 湖南 娄底 电信
初级用户
Credits 28
Posts 11
Joined 2006-11-05 21:22
19-year member
UID 69699
Gender Male
Status Offline
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
Floor 5 Posted 2007-01-17 01:31 ·  中国 广东 深圳 英达通信
初级用户
Credits 17
Posts 7
Joined 2007-01-15 10:25
19-year member
UID 76577
Gender Male
Status Offline
I tried, the time of boot.ini was changed. boot.bak is still the original time. No change.
Floor 6 Posted 2007-01-17 10:20 ·  中国 河南 信阳 电信
初级用户
Credits 30
Posts 15
Joined 2006-01-25 22:37
20-year member
UID 49525
Gender Male
Status Offline
Everyone can deduct points, for example like this
Floor 7 Posted 2007-01-17 13:48 ·  中国 福建 泉州 电信
中级用户
Credits 204
Posts 21
Joined 2003-07-27 00:00
23-year member
UID 7637
Gender Male
Status Offline
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
Floor 8 Posted 2007-01-18 00:23 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
This is a menstrual post~~~~How many results will be found by searching boot.ini?

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 9 Posted 2007-01-18 06:07 ·  中国 广东 广州 电信
高级用户
★★★
潜水修练批处理
Credits 788
Posts 366
Joined 2006-12-31 02:43
19-year member
UID 75048
Gender Male
Status Offline
Under Windows XP, you can use the bootcfg command to modify.

BOOTCFG /Timeout seconds
Floor 10 Posted 2007-01-18 06:14 ·  中国 北京 朝阳区 联通
高级用户
★★
朦胧的世界
Credits 579
Posts 218
Joined 2006-10-24 04:29
19-year member
UID 67972
Status Offline
...combat the three evil forces?

认识自己,降伏自己,改变自己
,才能改变别人!
Floor 11 Posted 2007-01-18 08:00 ·  中国 广东 江门 联通
初级用户
Credits 30
Posts 13
Joined 2006-01-06 09:50
20-year member
UID 48499
Status Offline

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 ]
Floor 12 Posted 2007-04-01 12:12 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
Originally, you can use two |.
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Forum Jump: