The report filename can be changed in onFunctionsLoad(). The below example appends a day of the week to the report filename if it contains ".html" or ".xml", so "C:\reports\mywebsite.html" would become something like "C:\reports\mywebsite-Tue.html". If you run daily jobs then this would allow you to always keep the last 7 days of reports.
Code: Select all
function onFunctionsLoad() {
$day=date('ddd'); // day of week as a three-letter abbreviation
$_JOB.report.filename=replaceStringNoCase($_JOB.report.filename,'.html','-'+$day+'.html');
$_JOB.report.filename=replaceStringNoCase($_JOB.report.filename,'.xml','-'+$day+'.xml');
}
For more information please visit this documentation page:
https://www.htmlvalidator.com/current/d ... nsload.htm