Aziraphale Posted March 24, 2004 Share Posted March 24, 2004 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:clsprint "\n"print "Press Enter to boot from DVD... \n"getkey 10 boot 0x80if $lastKey == key[enter]; then goto time# When no key found...goto boot# Function to display time of daytime:set hour = $timeHourset ampm = "am"if $timeHour > 12; then set hour = $timeHour - 12if $timeHour > 12; then set ampm = "pm"set time = "$hour:$timeMinute$ampm"# Function to display datedate: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 Interfacemenu:set textColor= color[grey on black]set boldColor= color[cyan on black]clsprint 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 0x80if $lastKey == key[1]; then chain /PRO1.DATif $lastKey == key[2]; then chain /PRO2.DATif $lastKey == key[3]; then chain /PRO3.DATif $lastKey == key[4]; then chain /PRO4.DATif $lastKey == key[q]; then endif $lastKey == key[r]; then rebootif $lastKey == key[esc]; then boot 0x80end Link to comment Share on other sites More sharing options...
DirtDevil Posted March 24, 2004 Share Posted March 24, 2004 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... Link to comment Share on other sites More sharing options...
LiquidSage Posted March 28, 2004 Share Posted March 28, 2004 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. Link to comment Share on other sites More sharing options...
Alanoll Posted March 28, 2004 Share Posted March 28, 2004 (edited) 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. Edited March 28, 2004 by Alanoll Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now