sixpack Posted February 4, 2005 Share Posted February 4, 2005 hii want to edit the boot.ini via batchhow to make this work?the orginal one:[boot loader]timeout=4default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS[operating systems]multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetectC:\CMDCONS\BOOTSECT.DAT="Microsoft Windows XP Herstelconsole" /cmdconsnew one:[boot loader]timeout=4default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS[operating systems]multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="XP Professional" /noexecute=optin /fastdetectC:\CMDCONS\BOOTSECT.DAT="Herstelconsole" /cmdcons Link to comment Share on other sites More sharing options...
Martin Zugec Posted February 4, 2005 Share Posted February 4, 2005 Bootcfg /d (description) Link to comment Share on other sites More sharing options...
sixpack Posted February 4, 2005 Author Share Posted February 4, 2005 Bootcfg /d (description)well i did /? and there's a s***load of options therecan you point me in the wright direction Link to comment Share on other sites More sharing options...
studguy1 Posted February 4, 2005 Share Posted February 4, 2005 1. Make sure you have "Hide Protected Operating system files" unchecked (in Tools->Folder Options) 2. In the properties pane for Boot.ini remove the "Read Only" Attribute.3. Make a Backup before messing with Boot.ini4. Make it Read only after you are done editing. Link to comment Share on other sites More sharing options...
sixpack Posted February 4, 2005 Author Share Posted February 4, 2005 1. Make sure you have "Hide Protected Operating system files" unchecked (in Tools->Folder Options) 2. In the properties pane for Boot.ini remove the "Read Only" Attribute.3. Make a Backup before messing with Boot.ini4. Make it Read only after you are done editing.i know how to set the ATTRIB for the file in cmdbut not how to edit it Link to comment Share on other sites More sharing options...
studguy1 Posted February 4, 2005 Share Posted February 4, 2005 i know how to set the ATTRIB for the file in cmdbut not how to edit itNotepad .I you want a DOS based editor you can use 'edit filename' Link to comment Share on other sites More sharing options...
sixpack Posted February 4, 2005 Author Share Posted February 4, 2005 @echo offATTRIB -R -S -H %systemdrive%\boot.inidel /F /Q %systemdrive%\boot.iniSET inifile="%systemdrive%\boot.ini" ECHO [boot loader] >> %inifile% ECHO timeout=4 >> %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 Professional" /noexecute=optin /fastdetect >> %inifile% ECHO C:\CMDCONS\BOOTSECT.DAT="HerstelConsole" /cmdcons >> %inifile% ATTRIB +R +S +H %systemdrive%\boot.iniPAUSE Link to comment Share on other sites More sharing options...
studguy1 Posted February 4, 2005 Share Posted February 4, 2005 yeah that'll work too. or you can use the edit command if you are restricted to command line. Link to comment Share on other sites More sharing options...
sixpack Posted February 4, 2005 Author Share Posted February 4, 2005 I just want to edit it for my ua cdif there are more solutions, post them please Link to comment Share on other sites More sharing options...
Dahi Posted February 4, 2005 Share Posted February 4, 2005 Soulin has the right ideabootcfg /copy /d "XP Professional" /id 1bootcfg /copy /d "Herstelconsole" /id 2bootcfg /delete /id 2bootcfg /delete /id 1Or use a search and replace tool from http://www.programmersheaven.com/zone16/cat656/ Link to comment Share on other sites More sharing options...
sixpack Posted February 4, 2005 Author Share Posted February 4, 2005 Soulin has the right ideabootcfg /copy /d "XP Professional" /id 1bootcfg /copy /d "Herstelconsole" /id 2bootcfg /delete /id 2bootcfg /delete /id 1Or use a search and replace tool from http://www.programmersheaven.com/zone16/cat656/that is what i was looking for thanks Link to comment Share on other sites More sharing options...
Innocent Devil Posted February 5, 2005 Share Posted February 5, 2005 me too want to edit boot.ini to add more switches from my uA CD . bootcfg doesn't give me an option to add /bootlogo switch .It can add /noguiboot etc.... Link to comment Share on other sites More sharing options...
Tsunami Posted February 5, 2005 Share Posted February 5, 2005 BOOTLOGO /A /ID 1 /RAW "/BOOTLOGO" Link to comment Share on other sites More sharing options...
amardeepsingh Posted February 19, 2005 Share Posted February 19, 2005 what shall i do if i had to rename the windows xp professionalto unattended xpin case of dual boot menuhow can i do that Link to comment Share on other sites More sharing options...
amardeepsingh Posted February 19, 2005 Share Posted February 19, 2005 what exactly will these line do in boot.inibootcfg /copy /d "XP Professional" /id 1bootcfg /copy /d "Herstelconsole" /id 2bootcfg /delete /id 2bootcfg /delete /id 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now