中国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-13 22:48
47,812 topics / 349,916 posts / today 0 new / 48,268 members
论坛回收站 » [Help] Need a batch file called "complex", experts please help
Printable Version  1,730 / 2
Floor1 jyc19970330 Posted 2010-08-07 08:30
新手上路 Posts 9 Credits 9
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.
Floor2 churui007 Posted 2010-08-07 08:36
新手上路 Posts 12 Credits 12
Reboot and automatically enter Safe Mode — this, I guess, won't be easy to do.
The rest is easy enough.
Floor3 jyc19970330 Posted 2010-08-07 08:53
新手上路 Posts 9 Credits 9
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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023