Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CDShell error

Featured Replies

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


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...

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.

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.