MSFN Forum: CDShell error - MSFN Forum

Jump to content



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

CDShell error Cls - unknown command entered Rate Topic: -----

#1 User is offline   Aziraphale 

  • Group: Members
  • Posts: 1
  • Joined: 19-March 04

Posted 24 March 2004 - 01:20 AM

Hi, I'm trying my image in Virtual PC and right away I get an error saying that line 2, commmand 1 (cls) in my script is an unknown command. I also tried the cdshell.ini from the site and another I found on the forums and they both failed pretty much straight away as well.

Does anyone have an idea what the problem could be?

Here's my cdshell.ini:

boot:
cls
print "\n"
print "Press Enter to boot from DVD... \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[grey on black]
set boldColor= color[cyan on black]
cls
print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0B$time $date\cXX>ÄÄ \n\n"
print c "\cXXAdvanced Multi-Boot DVD v1.7\n\n"
print l "\cXXPress \c0BF1 \cXXfor Help"; print r "\c0Bckite@portraitofakite.com \n"
print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"
print "1) Windows XP Pro SP1 for Crowley \n"
print "2) Windows XP Pro SP1 for Az \n"
print "3) Windows XP Pro SP1 for Laptop \n"
print "4) Windows XP Pro SP1 standard install \n"
print "\n"
print "X) More Options... \n\n"
print "Q) Quit to Command Prompt \n"
print "R) Reboot \n"
print "ESC) Boot 1st Harddisk \n"
print c "\n"

MainKey:
getkey 20 boot 0x80
if $lastKey == key[1]; then chain /PRO1.DAT
if $lastKey == key[2]; then chain /PRO2.DAT
if $lastKey == key[3]; then chain /PRO3.DAT
if $lastKey == key[4]; then chain /PRO4.DAT
if $lastKey == key[q]; then end
if $lastKey == key[r]; then reboot
if $lastKey == key[esc]; then boot 0x80
end


#2 User is offline   DirtDevil 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 12-March 04

Posted 24 March 2004 - 07:50 AM

As far as I know CLS is the command to clear the screen. It get's executed through the command.com. Reading your script... I think it wouldn't matter to delete the cls command. The script would continue without problems.

Maybe the command.com was not loaded already when running this script...

#3 User is offline   LiquidSage 

  • Wayward Prophet
  • PipPipPipPip
  • Group: Members
  • Posts: 577
  • Joined: 29-August 03

Posted 28 March 2004 - 01:30 PM

Tested your script w/ cdsh v2012. It worked fine using cdshw.com for debugging. Are you using any special graphic screens? Sometimes vpc has trouble clearing /loading splash & graphic screens. Check for trailing spaces though it should not matter. Double check that all modules included with cdsh are present.

#4 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 28 March 2004 - 02:45 PM

it's because you're missing the modules that the command is in. Maybe deleted one you thought you didn't need but did.

make sure you have ALL the modules from the distro zip file in the MODULES folder inside your CDSH/BOOT folder.

to be more specific, you're missing : basic.csm in the module folder.

This post has been edited by Alanoll: 28 March 2004 - 02:46 PM


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