Jump to content

In CDShell "# When no key found..." goto boot


Nath

Recommended Posts

Hi everybody ;)

In CdShell

# When no key found...

goto boot

My question is .. it's possible to put a variable like wait or someting else, or remove this variable :blushing: .

Merci

Is there a forum like this one but in french ... :wacko:

Link to comment
Share on other sites


I don't know really. Here is the content of my cdshell.ini, it might help you. You can find other examples on the forum ...

boot:

cls

print "\n"

print "Appuyer sur Entree pour demarrer sur le CD ... \n"

getkey 5 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 time = "$hour:$timeMinute"

# Function to display date

date:

set month = "n/a"

if $dateMonth == 1; then set month = "janvier"

if $dateMonth == 2; then set month = "fevrier"

if $dateMonth == 3; then set month = "mars"

if $dateMonth == 4; then set month = "avril"

if $dateMonth == 5; then set month = "mai"

if $dateMonth == 6; then set month = "juin"

if $dateMonth == 7; then set month = "juillet"

if $dateMonth == 8; then set month = "aout"

if $dateMonth == 9; then set month = "septembre"

if $dateMonth == 10; then set month = "octobre"

if $dateMonth == 11; then set month = "novembre"

if $dateMonth == 12; then set month = "decembre"

set date = "$dateDay $month $dateYear"

# Printing the Interface

menu:

set textColor= color[grey on black]

set boldColor= color[cyan on black]

cls

print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0B$date $time\cXX>ÄÄ \n\n"

print c "\cXXWindows XP Professionnel Service Pack 2\n\n"

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"

print "1)  Installation normale \n"

print "2)  Installation automatique \n"

print "3)  Redemarrer l'ordinateur \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 reboot

end

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