Print Page | Close Window

Timestamp

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=158
Printed Date: 27.Mar.2026 at 03:35
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Timestamp
Posted By: Dagijoana
Subject: Timestamp
Date Posted: 15.Jul.2010 at 15:42
Hi Steven,

just a simple question. How can I manage to add a creation timestamp to a file generated by the MERL generator?

Thanks!





Replies:
Posted By: stevek
Date Posted: 16.Jul.2010 at 01:34
I'd just use a DOS command, e.g.
external 'cmd /x /c echo %DATE% %TIME% >>myfile.txt' executeBlocking

If you want to timestamp several files from the same run, you can read that timestamp into a variable and use it again. Change >> to > above and then do:

variable 'timestamp' write
   filename 'myfile.txt' read
close

You can then just output $timestamp as normal into the files you are generating, e.g.

'// Generated from MetaEdit+ ' $timestamp



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net