RHAF Posted January 13, 2009 Share Posted January 13, 2009 (edited) Hi! I have problem with cdshell to try to the date in the dvd ultiboot :S I include here my code (the imporant, thing)boot:clsprint "\n"print "\c0EPresione Enter para \c09iniciar desde \c0Cel DVD... \n\c0Fpowered by RHAF"getkey 5 boot 0x80if $lastKey == key[enter]; then goto menu# Si se presiona una tecla indebidagoto boot# Funcion para Mostrar la Horatime:set hour = $timeHourset ampm = "am"if $timeHour > 12; then set hour = $timeHour - 12if $timeHour > 12; then set ampm = "pm"set time = "$hour:$timeMinute$ampm"# Función para mostrar la Fechadate: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 Principalmenu:set textColor= color[white on black]set boldColor= color[cyan on black]clsprint 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 completcdshell.ini Edited January 16, 2009 by RHAF Link to comment Share on other sites More sharing options...
RHAF Posted January 16, 2009 Author Share Posted January 16, 2009 nothing of help ??? :S , please help me in this Link to comment Share on other sites More sharing options...
deadbug Posted January 27, 2009 Share Posted January 27, 2009 nothing of help ??? :S , please help me in this You say you have a problem with the date but you don't say _what_ the problem is ... Link to comment Share on other sites More sharing options...
RHAF Posted January 28, 2009 Author Share Posted January 28, 2009 (edited) nothing of help ??? :S , please help me in this 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... fine, the problem is so not show date in the menu, already show images....the error is so show only $time and $dateNote: I use CD Shell 2.1.6 Edited January 28, 2009 by RHAF Link to comment Share on other sites More sharing options...
deadbug Posted February 12, 2009 Share Posted February 12, 2009 the error is so show only $time and $dateSorry - 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: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 Link to comment Share on other sites More sharing options...
Patraulea Posted April 27, 2009 Share Posted April 27, 2009 (edited) 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 daytime:set hour = $timeHourset ampm = "am"if $timeHour == 00; then set hour = 12if $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 = "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 Interfacemenu:set textColor= color[white on black]set boldColor= color[cyan on black]clsprint 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" Edited May 3, 2009 by Patraulea 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