myelin Posted March 3, 2007 Posted March 3, 2007 Hello guys 1. I want to know is there any way i can execute a script right at the beginning before Windows98SE boot process starts?I want to run Puppy Linux, which i can be run by running go.bat (which i made, because it was easy), but i have to go into into its directory and then execute go.bat from DOS prompt everytime i want to run Linux, so is there any way to make it run before windows; if i press yes, and if i press no then it boots to Windows. Any lines which i can add to grub? or is there something else?Thanks.
jaclaz Posted March 4, 2007 Posted March 4, 2007 (edited) Well, of course you can do it BOTH ways, i.e. add an entry in Grub4dos for the two os and boot from it, or make some changes in autoexec.bat to have a choice when 98 boots.You need either CHOICE.COM (included in DOS/Win9x) or CHOIX.COM, see here:http://www.msfn.org/board/index.php?showtopic=81722In your case will be something like this:ECHO Which OS do you want to load?ECHO.ECHO 1. Puppy LinuxECHO.ECHO 2. Windows 98ECHO.ECHO.CHOICE /C:12 /N Please choose a menu option (1 or 2): IF ERRORLEVEL == 2 GOTO :SKIPIF ERRORLEVEL == 1 GOTO :PUPPY:PUPPYCD "C:\your directory"go.batEXIT:SKIP::put your normal autoexec.bat lines here:...............win.comYou will need to edit MSDOS.SYS as to start Win9x with no GUI:http://www.annoyances.org/exec/show/article07-021BootGUI=0Or you can use the CONFIG.SYS method:http://tldp.org/HOWTO/text/Loadlin+Win95-98-ME(just think as your "go.bat" as the "linux.bat" referenced in the howto)jaclaz Edited March 4, 2007 by jaclaz
myelin Posted March 4, 2007 Author Posted March 4, 2007 The first method was very simple and easy and it worked like a charm. Thanks for writing the whole script for me.
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