March 3, 200620 yr hey there, I'm looking for a way to make XP edit boot.ini file before runonce to make it boot in safe mode, run driverpacks process, re-edit boot.ini back to what it was and reboot againso my doubt is how to replace themulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetectwith multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Safe Mode" /safeboot:minimal /sos /bootlogin a unattended way or some way to overwrite the boot.ini fileany tips?
March 3, 200620 yr Author according to this http://support.microsoft.com/kb/833721/en-us MS article, these keys should do their jobactually, what I need to know is just how to replace some text via batch file Edited March 3, 200620 yr by Orsi
March 3, 200620 yr That is easy thing to do i used this method to change my boot logo , and i'll reshape it for u to work with safemode switch ..1st - This one to start next time in SafeMode ( Added /SafeMode to Boot.iNi entry .. ) bootcfg /raw "/SafeMode" /A /ID 12nd - This one to start next in normal mode ( replaces parameters by '/fastdetect' .. ) bootcfg /raw "/fastdetect" /ID1EnJoY!
March 3, 200620 yr @ OrsiTry this cmd, edit what you need, then run it at "cmdlines", works for me.Found it in an old topic.@echo offATTRIB -R -S -H %systemdrive%\boot.inidel /F /Q %systemdrive%\boot.iniSET inifile="%systemdrive%\boot.ini"ECHO [boot loader] >> %inifile%ECHO timeout=0 >> %inifile%ECHO default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS >> %inifile%ECHO [operating systems] >> %inifile%ECHO multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="XP SP2 Pro" /bootlogo /noguiboot /fastdetect>> %inifile%ATTRIB +R +S +H %systemdrive%\boot.iniexit
Create an account or sign in to comment