I'm trying to write a batch script to determines if grub4dos has to start one operating system or another. First of all I want that it tries to boot Windows and if a file (bootmgr) it is not in the right place,it should boots Knoppix. It should be something like this :
IF ERRORLEVEL 1 goto start_linux
This is the menu.lst located into the C:\menuwind folder
and this is the menu.lst located to the root of the disk :
kernel /KNOPPIX/BOOT/ISOLINUX/LINUX. ramdisk_size=100000 2 toram lang=it vt.default_utf8=0 apm=power-off vga=791 nomce quiet loglevel=0 tz=localtime
for "IF ERRORLEVEL 1" I mean that when the file (bootmgr) located at : (hd0,1)/winzozz/bootmgr is not there,the script should jump to the :start_linux label,but it does not work !