Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


lswr
  •  lswr
  • No customer Topic Starter
2016-02-22T15:54:01Z
Hi,

I could not find this in a search of the documentation or the forum.

I'm evaluating VisualCron to replace a number of other tools and custom written code. One thing that occurs commonly is top write a file which has the current date and possibly time in the filename.

Can anyone point me in the right direction?

Thanks

Colin

Sponsor
Forum information
ErikC
2016-02-23T06:54:47Z
Hi Colin, welcome to the forum.

If I understood correctly, you want to write a file with date time stamp in the 1st line?

If so, you can use the File Write task. In there use the Date variabeles and choose a right format, e.g.: {DATEFORMAT(M/d/yyyy h:mm tt)}
If you place this in the file write task, and run your task, the current date and time will be in the file.

Regards
Erik
Uses Visualcron since 2006.
lswr
  •  lswr
  • No customer Topic Starter
2016-02-23T09:31:56Z
Hi Erik,

Thanks for the prompt reply, but I was obviously not very clear when posing the question. What I want is to put the date in the name of the file that I write e.g. "MyApp_Log_For_1016-02-22.csv" buthave not been able to see how this night be done. Can one also use a date variable in the file name specification?

Colin
ErikC
2016-02-23T09:44:13Z
Yes, you can use the variable in the name also. Just be sure the characters are valid for a filename.

Regards,
Erik
Uses Visualcron since 2006.
Scroll to Top