Help - Search - Members - Calendar
Full Version: error in date of cdshell
MSFN Forums > Unattended Windows Discussion & Support > Multi-Boot CD/DVDs

   


Google Internet Forums Unattended CD/DVD Guide
RHAF
Hi! I have problem with cdshell to try to the date in the dvd ultiboot :S

I include here my code (the imporant, thing)

CODE
boot:
cls
print "\n"
print "\c0EPresione Enter para \c09iniciar desde \c0Cel DVD... \n\c0Fpowered by RHAF"
getkey 5 boot 0x80
if $lastKey == key[enter]; then goto menu
# Si se presiona una tecla indebida
goto boot

# Funcion para Mostrar la Hora
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"

# Función para mostrar la Fecha
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"

# Imprimiendo Menu Principal
menu:
set textColor= color[white on black]
set boldColor= color[cyan on black]
cls
print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0B$time $date\cXX>ÄÄ \n\n"
print c "\cXXMENU DE INSTALACION DE STORM BLACK  \n\n"
print l "\cXX[F1] \c09Ayuda"; print c "\cXX[F2] \c0CCreditos";    print r "\cXXwww.ureloaded.com "
print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"


interested attached the code complet
RHAF
nothing of help ??? :S , please help me in this biggrin.gif
deadbug
QUOTE (RHAF @ Jan 16 2009, 02:53 AM) *
nothing of help ??? :S , please help me in this biggrin.gif


You say you have a problem with the date but you don't say _what_ the problem is ...
RHAF
QUOTE (deadbug @ Jan 27 2009, 05:46 AM) *
QUOTE (RHAF @ Jan 16 2009, 02:53 AM) *
nothing of help ??? :S , please help me in this biggrin.gif


You say you have a problem with the date but you don't say _what_ the problem is ...


If so, sorrry, i thought that I had explained... blushing.gif

fine, the problem is so not show date in the menu, already show images....



the error is so show only $time and $date

Note: I use CD Shell 2.1.6
deadbug
QUOTE (RHAF @ Jan 28 2009, 02:04 PM) *
the error is so show only $time and $date


Sorry - I forgot to mark this topic so that I'd get email, so I didn't realise that you'd supplied more information.

I still have my old CDshell based menu driven DVD around somewhere so I'll go look at it and refresh my memory about how it should work.

In the meantime, try changing the line to just do something like:
CODE
print c "<$time $date>"

and see if that works.

Obviously you build an ISO image and test in a VM and don't waste time burning a real CD.

If I still had my CDshell system handy I'd do this now.

-- deadbug
Patraulea
I have the same problem (same code like RHAF). The cdshell.ini file is taked from here. In his picture is seen corectly. What is wrong ?
P.S. Hope to understand my english.

P.S.2 I solved my self. There were something wrong in the command line. RHAF adapt your command line from mine and see the differenes. From what i see the differences is those 2 \ lines and datemonth.
P.S.3 Is there anyway to put time in 24H format?


# Function to display time of day
time:
set hour = $timeHour
set ampm = "am"
if $timeHour == 00; then set hour = 12
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 = "Ian."
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 = "Mai."
if $dateMonth == 6; then set month = "Iun."
if $dateMonth == 7; then set month = "Iul."
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 = "Noi."
if $dateMonth == 12; then set month = "Dec."
set date = "\$dateDay/$dateMonth/$dateYear"


# Printing the Interface
menu:
set textColor= color[white on black]
set boldColor= color[cyan on black]
cls
print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0A$time $date\cXX>ÄÄ \n\n"
print c "\cXXMENIU PRINCIPAL \n\n"
print l "\cXXApasa \c0AF1 \cXXpentru Ajutor \n"
print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.