MSFN Forum: error in date of cdshell - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

error in date of cdshell Rate Topic: -----

#1 User is offline   RHAF 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 04-January 08

  Posted 13 January 2009 - 05:58 AM

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

Attached File(s)


This post has been edited by RHAF: 15 January 2009 - 08:57 PM



#2 User is offline   RHAF 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 04-January 08

Posted 15 January 2009 - 08:53 PM

nothing of help ??? :S , please help me in this :D

#3 User is offline   deadbug 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 30-June 05

Posted 27 January 2009 - 04:46 AM

View PostRHAF, on Jan 16 2009, 02:53 AM, said:

nothing of help ??? :S , please help me in this :D


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

#4 User is offline   RHAF 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 04-January 08

Posted 28 January 2009 - 08:04 AM

View Postdeadbug, on Jan 27 2009, 05:46 AM, said:

View PostRHAF, on Jan 16 2009, 02:53 AM, said:

nothing of help ??? :S , please help me in this :D


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:

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

Posted Image

the error is so show only $time and $date

Note: I use CD Shell 2.1.6

This post has been edited by RHAF: 28 January 2009 - 08:10 AM


#5 User is offline   deadbug 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 30-June 05

Posted 11 February 2009 - 06:11 PM

View PostRHAF, on Jan 28 2009, 02:04 PM, said:

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

#6 User is offline   Patraulea 

  • Group: Members
  • Posts: 4
  • Joined: 11-August 08

Posted 27 April 2009 - 10:47 AM

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: 03 May 2009 - 05:48 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy