Saving files with current dates

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
Steve Sergeant
Newbie
Posts: 2
Joined: Wed Dec 22, 2004 9:04 am
Location: Bury
Contact:

Saving files with current dates

Post by Steve Sergeant » Wed Dec 22, 2004 9:09 am

I am VERY new to this so please excuse a dumb posting. I want to run a script that allows be to save a file regularly at 23.59 each day. I have writen the script, but I need the file name for the file to be the currentdate each time it is saved e.g. 20041222.html

I believe this can be done with characters such as %curdate%.html but all that seems to happen is that windows uses this as the name.

Any suggestions

Lumumba

Post by Lumumba » Wed Dec 22, 2004 9:40 am

I believe this can be done with characters such as %curdate%.html
Your correct. As your description lacks the rest of your code I've to assume that you've missed to assign a value to the variable curdate?
Or something else I can't figure out without getting more details :roll:
Year>YYYY
Month>MM
Day>DD

Let>curdate=%YYYY%%MM%DD%
MessageModal>%curdate%.html
Untested!

Steve Sergeant
Newbie
Posts: 2
Joined: Wed Dec 22, 2004 9:04 am
Location: Bury
Contact:

Post by Steve Sergeant » Wed Dec 22, 2004 9:57 am

Great help. Works a treat,

Thanks

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts