Jump to content

CDShell error


Aziraphale

Recommended Posts

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

Link to comment
Share on other sites


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

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

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 by Alanoll
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...