home *** CD-ROM | disk | FTP | other *** search
- if !defined[target]; then set target = ""
- if $expert == 0; then goto execute
-
- menu:
- set textColor = color[white on cyan]
- clear
- set textColor = color[yellow on blue]
- print " ULTIMATE BOOT CD VER 3.4 "
- print " http://www.ultimatebootcd.com/ "
- print " "
- set textColor = color[white on red]
- print " [Expert Menu] "
- set textColor = color[white on cyan]
- print " "
- print " "
- print " "
- set textColor = color[yellow on cyan]
- print " Method > $method\n"
- print " Image > $image\n"
- print " Target > $target\n"
- set textColor = color[white on cyan]
- print " "
- print " [F1] Use memdisk "
- if compare["$target" ""]; else set textColor = color[brightgrey on cyan]
- print " [F2] Use diskemu "
- set textColor = color[white on cyan]
- print " [F3] Use bcdw "
- print " "
- print " [F4] Use FreeDOS "
- if file[\images\drubcd.img]; else set textColor = color[brightgrey on cyan]
- print " [F5] Use OpenDOS "
- set textColor = color[white on cyan]
- if file[\images\msubcd.img]; else set textColor = color[brightgrey on cyan]
- print " [F6] Use MSDOS "
- set textColor = color[white on cyan]
- print " "
- print " [F10] Execute command "
- print " "
- print " "
- print " "
- set textColor = color[white on blue]
- print " $(x$expert) Please select an item (ESC returns to main menu) "
- set textColor = color[white on black]
-
- #
- # Actions
- #
- getkey
- clear
- if ($lastKey == key[ins]); then set expert = ($expert + 1) % 2;
- if ($lastKey == key[f1]); then set method = "memdisk"
- if !compare["$target" ""]; then if ($lastKey == key[f2]); then set method = "diskemu"
- if ($lastKey == key[f3]); then set method = "bcdw"
- if ($lastKey == key[f4]); then set image = "fdubcd"
- if file[\images\drubcd.img]; then if ($lastKey == key[f5]); then set image = "drubcd"
- if file[\images\msubcd.img]; then if ($lastKey == key[f6]); then set image = "msubcd"
- if ($lastKey == key[f10]); then goto execute
- if ($lastKey == key[esc]); then set target = ""; then script main.scn
- goto menu
-
- #
- # Execute command
- #
- execute:
- if file[\images\$(image).igz]; then set image = "$(image).igz";
- if file[\images\$(image).img]; then set image = "$(image).img";
- if file[\images\$(image).ima]; then set image = "$(image).ima";
- if file[\images\$(image).iso]; then set image = "$(image).iso";
- if (compare["$target" ""] && compare["$method" "memdisk"]); then memdisk /images/$image
- if (compare["$target" ""] && compare["$method" "diskemu"]); then diskemu /images/$image
- if (compare["$target" ""] && compare["$method" "bcdw"]); then bcdw boot /images/$image
- if compare["$method" "memdisk"]; then isolinux memdisk initrd=/images/$image ubcdcmd=$target
- if compare["$method" "diskemu"]; then diskemu /images/$image $target
- if compare["$method" "bcdw"]; then bcdw boot /images/$image $target
-
-