MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Timestamp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Timestamp

 Post Reply Post Reply
Author
Message
Dagijoana View Drop Down
Major Contributor
Major Contributor


Joined: 14.Jun.2008
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dagijoana Quote  Post ReplyReply Direct Link To This Post Topic: Timestamp
    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!


Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.104 seconds.