Knowledgebase

status_loader

Scheduled reports with date in filename

Question / Problem

I want to run a scheduled task every week without the need to rename the file before it gets overwritten. Is there a method to name the file in a date format?

Answer / Solution

You can do this with the command line switch "/DATE"

This switch will add the current date to all file names occurring after it on the command line. This is useful if you want to do scans regularly every night or every weekend. If you want the date included in all filenames, then /DATE should be your first command line option. The following example will scan the network path \host\share and save the result to a file like C:\scans\name_03-12-20_1550.xls:

Treesize.exe /DATE /EXCEL "C:\scans\name.xls" "\\host\share"

Need further help getting started?

You did not find what you were looking for? Please contact us so we can provide an answer to your question.

Contact Form