Knowledge Base


Question / Problem

I want to run a scheduled task every week without the need to rename the file before it 's 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:

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