Using variables in report filenames

2 posts · Closed

Anthony Guest
23 Jan 2023

Hello,

I just updated to the current release. Years ago when I first used the product, I wrote to ask if there was a way to incorporate variables in the filename of the reports, and there wasn't. Has that changed through the years, and is there a way to do it now?

In particular, I'd like to save weekly and monthly reports incorporating the date in the filename. It's probably not practical to do so with the dailys, but would be useful to have for the less frequent reports.

Thanks,
Anthony

Ann SoftPerfect
23 Jan 2023

A set of special date-formatting characters is supported in reports saved to a file. You can use any of these tokens, each surrounded by % characters:

  • y
  • yy
  • yyyy
  • m
  • mm
  • mmm
  • mmmm
  • d
  • dd
  • ddd
  • dddd
  • h
  • hh
  • n
  • nn
  • s
  • ss

For example:

%yyyy%-%mm%-%dd%.txt

will become

2023-01-23.txt
This topic is closed. It has had no new posts for over a year, so the software versions it talks about may be out of date. Start a new topic in NetWorx if you have a similar question.