Jan 13 2009, 05:58 AM Post
#1 | |
| Newbie Group: Members Posts: 23 Joined: 4-January 08 From: Colombia!!! Member No.: 169713 OS: XP Pro x86 |
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 This post has been edited by RHAF: Jan 15 2009, 08:57 PM Attached File(s) |
| | |
![]() |
Jan 15 2009, 08:53 PM Post
#2 | |
| Newbie Group: Members Posts: 23 Joined: 4-January 08 From: Colombia!!! Member No.: 169713 OS: XP Pro x86 |
nothing of help ??? :S , please help me in this |
| | |
Jan 27 2009, 04:46 AM Post
#3 | |
| Junior ![]() Group: Members Posts: 96 Joined: 30-June 05 Member No.: 62492 | |
| | |
Jan 28 2009, 08:04 AM Post
#4 | |
| Newbie Group: Members Posts: 23 Joined: 4-January 08 From: Colombia!!! Member No.: 169713 OS: XP Pro x86 | 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 $date Note: I use CD Shell 2.1.6 This post has been edited by RHAF: Jan 28 2009, 08:10 AM |
| | |
Feb 11 2009, 06:11 PM Post
#5 | |
| Junior ![]() Group: Members Posts: 96 Joined: 30-June 05 Member No.: 62492 | 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 |
| | |
Apr 27 2009, 10:47 AM Post
#6 | |
| Group: Members Posts: 4 Joined: 11-August 08 Member No.: 204856 OS: XP Pro x86 |
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" This post has been edited by Patraulea: May 3 2009, 05:48 AM |
| | |
![]() ![]() |
| Lo-Fi Version | Time is now: 22nd November 2009 - 01:29 PM |