Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NotePad - cool feature
Message
De
21/04/2014 08:40:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/04/2014 00:54:31
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
01598849
Message ID:
01598855
Vues:
70
>1. Open a new NotePad document
>2. Put ".LOG" as the first line
>3. Save the document
>
>Now, every time you open the document with NotePad, it will automatically append the current date/time.

Got it on second time... and even when they insert a cool feature, they have to screw it up...

1) .log doesn't work, it must be .LOG

2) it's time/date, not date/time with my system settings... in which there's nothing to indicate whether a datetime should be displayed with date or time first, they are set independently and the order is not set at all.

Here's how I was doing that for years:
#define cr chr(13)
#define c_log "the.log"
SET DATE YMD
set hours to 24
_screen.Visible=.t.
IF FILE(c_log)
	t=FDATE(c_log,1)
	ltClosed=TEXTMERGE([-- closed at <<t>>])+cr+cr+cr
ELSE
	ltClosed=""
endif
*-- TEXT BLOCK BEGIN
TEXT TO  cBuf NOSHOW TEXTMERGE PRETEXT 0
 <<ltClosed>><<SYS(0)>> <<DATETIME()>>
ENDTEXT
*-- TEXT BLOCK END
*[2014/02/18 11:48:54] nDragan - I just like macdesktop, works nice with two monitors
=strtofile(cr+cr+cBuf, c_log,1)
modify file (c_log) range 1e6, 1e6 nowait in macdesktop

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform