home *** CD-ROM | disk | FTP | other *** search
- #
- # Sample script demonstrating some variables.
- # For CD Shell 2.0, Feb 2003
- #
-
- #--------------------------------------------------------------------------
- # Print the program name and version string.
- cls
- print c "You are using $appName, version $(version).\n\n"
-
-
- #--------------------------------------------------------------------------
- # Print out the date and time as reported by the BIOS.
-
- set hour = $timeHour
- set ampm = "AM"
- if $hour > 12 # Check for PM time.
- then set hour = $hour - 12
- then set ampm = "PM"
- if $hour == 0 # Check for 12 AM (midnight).
- then set hour = 12
-
- print c "Today's date is:\n"
- print c "$dateMonth-$dateDay-$dateYear $hour:$timeMinute:$timeSecond $ampm\n\n"
-
-
- #--------------------------------------------------------------------------
- # Display the capabilities of the video adapter.
- if $vesa
- then print c "VESA BIOS Extensions are sufficiently supported on this system\n"
- then print c "You can display 640 by 480, true-color images.\n\n"
- else print c "VESA BIOS Extensions are *not* sufficiently supported on this system\n"
- else print c "You can only display 320 by 240, 256-color images.\n\n"
-
-
- #--------------------------------------------------------------------------
- # Check the bootability of HD0.
-
- set boottest = bootCheck[0x80]
- if ($boottest > 0) && ($boottest < 3)
- then print c "Hmm... HD0 appears bootable.\n\n"; then end
- if $boottest == 3
- then print c "Hmm... I'm pretty sure \cXXhda\cxx can be booted.\n\n"
- else print c "Hmm... I don't think I can boot from \cXXhda\cxx.\n\n"
-
- end
-