Vous êtes sur la page 1sur 2

================================================================= Automatic Changing of BOOT.

INI by bat file (Windows XP Tips) ================================================================= Hi Many of my good friends have made their favorite Boot Screen and they know that they should edit boot.ini to use their boot screen but they wanted to know how to change boot.ini in automatic process inside their system and when installing windows XP. This work is very easy,but you should pay attention to notes bellow then i will give you an bat file to do what you want. 1.As you see in my tutor (link bellow),Windows xp uses differnt files for display boot screen,with respect to kind of CPU that you use.as i said on that tutor ,1st you should make 2 boot screen files,one for single processor cpu and another for dual processor.

http://www.boot-land.net/forums/?showtopic=4448 2.If you make just one type of boot screen in your system,it will be made with respect to type of your CPU,so that boot screen file will work on your system,But if you want to use that by another computer it will work just by computrs that has CPU spefications as yours.and will not work by other kinds of computers and their system will halt during boot. So you have to make at least 2 kinds of boot screen to work on most computers(see my tutor on link above). 3.What we should do after making our boot screens? there is very good tutor in MSFN site that talks about this object an i am going to say it shortly bellow: ====================================================================== I suppose that you have made your boot screen files by the names of: BootA.exe (for single kernel) BootB.exe (for Dual kernel) And I suppose that you have saved them in your "system32" directory. ====================================================================== Now open notepad and copy script below on it then save by the name of MyBoot.bat (be sure to save as bat file not txt file!). ------------------------------------------FOR /F "tokens=3 delims= " %%A IN (\'REG QUERY "HKLM\SYSTEM\ControlSet001\Control\Session Manager \Environment" /v NUMBER_OF_PROCESSORS\') DO SET NUMBER_OF_PROCESSORS=%%A bootcfg /copy /D "Windows XP Professional" /ID 1 if %NUMBER_OF_PROCESSORS%==2 goto DUAL

bootcfg /RAW "/Kernel=BootA.exe" /A /ID 2 goto End :DUAL bootcfg /RAW "/Kernel=BootB.exe" /A /ID 2 :End bootcfg /Default /ID 2 ----------------------------------------------By running this batch file,it will check systems registry,will find type of system CPU,and will use proportional file with respect to your system. I mean that it will change your boot.ini,with respect to your cpu If you are using singkeknl type it will add using BootA.exe to your boot.ini and if you have dualknl it will add BootB.exe. ===================================================================== that's all. hope will help if needed ask questions, thank you shirin

Vous aimerez peut-être aussi