View Full Version : Automatic naming for reports
lsw82
08-Sep-2005, 12:12 AM
Hi there,
I want my script to name my reports automatically according to dates, just like what i can do with naming snapshots, but I could not see the possibility of doing that with the file-report output-to command. Please advice. Thanks :)
Chris
08-Sep-2005, 10:30 AM
It is possible to include the date in the file name of reports. Scripting has the variables %date% (yyyy-mm-dd) and the %fn_time% (hh-mm-ss) to include dates and times in file names.
As an example, to include the date in the name of a file-report output:
file-report layout:side-by-side output-to:foo_report-%date%.txt
lsw82
08-Sep-2005, 08:14 PM
Hi Chris,
I have successfully done the %date% command, but I have a question here:
I tried to write a script to save the report to another folder, like output-to:"C:\Windows\Desktop\foo_report-%date%.txt" but it doesn't work.
Please advice. Thanks again.
chrroe
09-Sep-2005, 12:44 AM
Hi!
</font><blockquote><font class="small">In Antwort auf:</font><hr />
but it doesn't work.
[/quote]
That's not a good description of the problem! Describe it more verbose please ...
One quick idea:
Try output-to:"C:\Windows\Desktop\foo_report-"%date%".txt"
Havn't tried it, but I think placeholders in quotes are not expanded.
Bye
Christoph
Chris
09-Sep-2005, 01:24 PM
The %date% variable should work.
Here's an example script that worked on my system:
load source target
expand all
select all
file-report layout:side-by-side output-to:"c:\w\foo_report-%date%.txt"
If you still can't get it to work, please post your full script, along with any error messages that you are getting.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.