@echo off

if "%1"=="" goto help
if "%1"=="rescue" goto rescue
if "%1"=="linux" goto linux
:help
echo.
echo To boot the RIP rescue system from a DOS/Win9x system, do this.
echo.
echo Have the RIP cd in the drive, in this example it's E.
echo This only works on a DOS/Win9x system in dos mode.
echo You have to be in DOS mode, shutdown windows and restart in DOS mode. 
echo C:\ E:
echo E:\ rip rescue
echo.
echo If you want to enable SCSI emulation!
echo Your cdrom drive could be hdb, hdc, hdd, etc.
echo E:\ rip rescue hdd=scsi
echo.
echo If you want to boot a linux partition put the device it's on (/dev/xxxx).
echo E:\ rip linux root=/dev/hda2 ro
echo E:\ rip linux root=/dev/hda2 ro hdd=scsi  "To enable SCSI emulation!"
echo E:\ rip linux root=/dev/hda2 ro single    "Boot to single-user mode!"
echo.
goto exit
:rescue
\isolinux\loadlin \isolinux\kernel initrd=\isolinux\rescue.gz init=/linuxrc vga=normal ramdisk_size=19000 root=/dev/ram0 rw %2%3
goto exit
:linux
\isolinux\loadlin \isolinux\kernel vga=normal %2%3%4%5 %6 %7%8 %9
goto exit
:exit
