Jump to content

unattended boot.ini modification


Recommended Posts

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 again

so my doubt is how to replace the

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

with

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Safe Mode" /safeboot:minimal /sos /bootlog

in a unattended way or some way to overwrite the boot.ini file

any tips? :)

Link to comment
Share on other sites


That is easy thing to do :whistle:

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 .. ) :blink:

bootcfg /raw "/SafeMode" /A /ID 1

2nd - This one to start next in normal mode ( replaces parameters by '/fastdetect' .. ) :blink:

bootcfg /raw "/fastdetect" /ID1

EnJoY! :hello:

Link to comment
Share on other sites

@ Orsi

Try this cmd, edit what you need, then run it at "cmdlines", works for me.

Found it in an old topic.

@echo off

ATTRIB -R -S -H %systemdrive%\boot.ini

del /F /Q %systemdrive%\boot.ini

SET 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.ini

exit

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...