I am setting up a macro to copy a file from one directory, then save it to another with part of the name being the current day's date. For example: rename report.snp to report011706.snp.
Is there anyone out there that would know how to do this??
Thanks!
Rename a file with part of it being current day's date.
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Like this:
Year>yyyy
Month>mm
Day>dd
MidStr>yyyy,3,2,yy
MoveFile>report.snp,report%dd%%mm%%yy%.snp
Year>yyyy
Month>mm
Day>dd
MidStr>yyyy,3,2,yy
MoveFile>report.snp,report%dd%%mm%%yy%.snp
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?