MSFN Forum: CDShell won't accept keypresses - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CDShell won't accept keypresses Rate Topic: -----

#1 User is offline   Aaron 

  • The MSFN Banana
  • Group: Patrons
  • Posts: 5,767
  • Joined: 17-August 01
  • OS:ME
  • Country: Country Flag

Posted 03 February 2004 - 04:22 PM

Could anyone provide any insight on why CDShell doesn't accept the keypresses, such as '1' to start Windows98 Startup Disk it returns an "Unknown Command Entered". (Screenshot below the cdshell.ini code)

cdshell.ini
boot:
cls
print "\n"
print "Press Enter to boot from CD... \n"
print "\n"
print "10 seconds remaining until auto-boot to 1st Hard Disk \n"
getkey 10 boot 0x80
if $lastKey == key[enter]; then goto time
# When no key found...
goto boot

# Function to display time of day
time:
set hour = $timeHour
set ampm = "am"
if $timeHour > 12; then set hour = $timeHour - 12
if $timeHour > 12; then set ampm = "pm"
set time = "$hour:$timeMinute$ampm"

# Function to display date
date:
set month = "n/a"
if $dateMonth == 1; then set month = "Jan."
if $dateMonth == 2; then set month = "Feb."
if $dateMonth == 3; then set month = "Mar."
if $dateMonth == 4; then set month = "Apr."
if $dateMonth == 5; then set month = "May."
if $dateMonth == 6; then set month = "Jun."
if $dateMonth == 7; then set month = "Jul."
if $dateMonth == 8; then set month = "Aug."
if $dateMonth == 9; then set month = "Sep."
if $dateMonth == 10; then set month = "Oct."
if $dateMonth == 11; then set month = "Nov."
if $dateMonth == 12; then set month = "Dec."
set date = "$month$dateDay,$dateYear"

# Printing the Interface
menu:
set textColor= color[brightgreen on black]
set boldColor= color[cyan on black]
cls
print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0B$time $date\cXX>ÄÄ \n\n"
print c "\cXXAaron's Administration CD\n\n"
print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"
print "1)  Windows 98 SE Startup Disk \n"
print "2)  Symantec Ghostcast Network 8.0 \n"
print "3)  Symantec Ghost 8.0 Corporate \n"
print "4)  Memtest86 Memory Diagnostics \n"
print "5)  Partition Magic 8 \n"
print "6)  Ultimate Boot CD 2.1 \n"
print c "\n"
print c "\n"
print "Q)  Quit to Command Prompt \n"
print "R)  Reboot \n"
print "ESC) Boot to 1st Hard Disk \n"
print c "\n"

MainKey:
if $lastKey == key[1]; then memdisk /Win98Startup.IMA
if $lastKey == key[2]; then memdisk /Ghostcast.IMA
if $lastKey == key[3]; then memdisk /Ghost8Corp.IMA
if $lastKey == key[4]; then memdisk /memtest.IMA
if $lastKey == key[5]; then memdisk /PM8.IMA
if $lastKey == key[q]; then end
if $lastKey == key[r]; then reboot
if $lastKey == key[esc]; then boot 0x80

end

Attached File(s)




#2 User is offline   Aaron 

  • The MSFN Banana
  • Group: Patrons
  • Posts: 5,767
  • Joined: 17-August 01
  • OS:ME
  • Country: Country Flag

Posted 03 February 2004 - 05:06 PM

Never mind, fixed it.

It wanted "getkey 60 boot 0x80" after "MainKey:"

#3 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 February 2004 - 05:20 PM

This one's strictly not for cdshell fans

Get rid of all these complex head-aches, and check-out EasyBoot.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy