Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

error in date of cdshell

Featured Replies

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

cdshell.ini

Edited by RHAF


  • Author

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

  • 2 weeks later...
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 ...

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

cdshellzq9.png

the error is so show only $time and $date

Note: I use CD Shell 2.1.6

Edited by RHAF

  • 2 weeks later...
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

  • 2 months later...

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"

Edited by Patraulea

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.