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-26 12:27
中国DOS联盟论坛 » 其它操作系统综合讨论区 » [Help] What command can be added to autoexec.bat to stop Win98SE from starting View 1,041 Replies 8
Original Poster Posted 2005-02-17 00:00 ·  中国 四川 自贡 电信
初级用户
Credits 187
Posts 31
Joined 2004-08-30 00:00
21-year member
UID 30979
Gender Male
Status Offline
When Win98SE starts, it runs autoexec.bat
I want to add a command in autoexec.bat to stop Windows from starting and enter DOS
What should I do?
Floor 2 Posted 2005-02-18 00:00 ·  中国 广东 广州 黄埔区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Don't modify AUTOEXEC.BAT, modify MSDOS.SYS instead: under , change BootGUI=1 to BootGUI=0.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 3 Posted 2005-02-18 00:00 ·  中国 四川 自贡 电信
初级用户
Credits 187
Posts 31
Joined 2004-08-30 00:00
21-year member
UID 30979
Gender Male
Status Offline
That won't do. What I want is this: disable F8 during Win98 startup, then set a password in autoexec.bat. If the password is entered, it can stop Win98 startup and enter DOS; if not entered, it goes into Windows. How do I do that? When autoexec.bat is running, pressing ctrl+C or ctrl+break still can't stop Windows from starting.
Floor 4 Posted 2005-02-19 00:00 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
If you want to disable the F8 key, you'll still have to modify MSDOS.SYS: add a line, BootKey=0. As for setting a password, look through the recent posts, lots of people have been discussing it.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 5 Posted 2005-02-19 00:00 ·  中国 四川 自贡 电信
初级用户
Credits 187
Posts 31
Joined 2004-08-30 00:00
21-year member
UID 30979
Gender Male
Status Offline
I know how to set a password
What I mainly want is to stop Windows startup
That is, when Windows startup reaches autoexec.bat
have something run in autoexec.bat that can interrupt Windows startup
and enter the DOS prompt
Floor 6 Posted 2005-02-25 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
If you want to disable the F8 key, you'll still have to modify MSDOS.SYS: add a line BootKey=0. Let autoexec.bat run win to re-enter Windows—you can set a password, and only run win if it's correct.
Floor 7 Posted 2005-02-27 00:00 ·  中国 四川 自贡 电信
初级用户
Credits 187
Posts 31
Joined 2004-08-30 00:00
21-year member
UID 30979
Gender Male
Status Offline
You still haven't understood what I mean. The key point is that I want to stop Windows startup from autoexec. During the Win98 startup process, after autoexec runs, it automatically runs win.com to start Windows. What I want now is for win.com not to run after autoexec finishes.
Floor 8 Posted 2005-02-27 00:00 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Actually, if you add BOOTGUI=0 to MSDOS.SYS, then after AUTOEXEC.BAT finishes it won't run WIN.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 9 Posted 2005-02-28 00:00 ·  中国 四川 自贡 电信
初级用户
Credits 187
Posts 31
Joined 2004-08-30 00:00
21-year member
UID 30979
Gender Male
Status Offline
Looks like I'll have to use the method from the previous post: set BOOTGUI=0, then in autoexec.bat, if the preset key isn't pressed, run win automatically to start Windows; if it is pressed, prompt for a password.
Forum Jump: