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-07-29 09:01
中国DOS联盟论坛 » 论坛回收站 » [Help] Need a batch file called "complex", experts please help View 1,603 Replies 2
Original Poster Posted 2010-08-07 08:30 ·  中国 江苏 苏州 电信
新手上路
Credits 9
Posts 9
Joined 2010-07-12 03:23
16-year member
UID 170425
Gender Male
Status Offline
Make this batch file carry out the following functions in sequence without any manual intervention:
start batch file 1.bat in normal mode — reboot and automatically enter Safe Mode — after entering Safe Mode automatically run 2.bat — reboot into normal mode — after entering normal mode automatically run 3.bat — after 3.bat finishes, automatically delete the startup item. (It would be best if an expert could give me the code for each task separately.) Thanks in advance.
Floor 2 Posted 2010-08-07 08:36 ·  中国 山西 太原 联通
新手上路
Credits 12
Posts 12
Joined 2010-08-03 11:45
15-year member
UID 171662
Gender Male
Status Offline
Reboot and automatically enter Safe Mode — this, I guess, won't be easy to do.
The rest is easy enough.
Floor 3 Posted 2010-08-07 08:53 ·  中国 江苏 苏州 电信
新手上路
Credits 9
Posts 9
Joined 2010-07-12 03:23
16-year member
UID 170425
Gender Male
Status Offline
Seems to be this, but I can't understand it

@echo off
type %systemdrive%\boot.ini>%systemdrive%\boot.bak
attrib -h -r -s %systemdrive%\boot.ini
echo multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /safeboot:minimal /sos /bootlog /noguiboot>>%systemdrive%\boot.ini
BOOTCFG /Default /ID 2
BOOTCFG /Timeout 0
Forum Jump: