Orsi Posted March 3, 2006 Share Posted March 3, 2006 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? Link to comment Share on other sites More sharing options...
jondercik Posted March 3, 2006 Share Posted March 3, 2006 doesnt safe mode ignore the run keys? Link to comment Share on other sites More sharing options...
Orsi Posted March 3, 2006 Author Share Posted March 3, 2006 (edited) 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, 2006 by Orsi Link to comment Share on other sites More sharing options...
sHaDYvB Posted March 3, 2006 Share Posted March 3, 2006 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! Link to comment Share on other sites More sharing options...
Orsi Posted March 3, 2006 Author Share Posted March 3, 2006 tks!I'll try it in a few moments Link to comment Share on other sites More sharing options...
Lau Posted March 3, 2006 Share Posted March 3, 2006 @ 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now