Need help with a BATCH file
Posted on 2012-03-14
-We are using the following batch file which is configured with an AT task.
cd C:\Program Files (x86)\JAM Software\TreeSize Professional\
TreeSize.exe /HTML "\\ss1\IS_Shared\Weekly Storage Reports\IS_SHARED_StorageReport.HTML" /EXPAND 2 \\ss1\is_shared
blat.exe "\\ss1\IS_Shared\Weekly Storage Reports\IS_SHARED_StorageReport.HTML" -to firstname.lastname@example.org -f email@example.com -server exchange.domain.local
-The script runs once every moth
-Through TreeSize.exe /HTML we are creating an output HTML file which creates a report the report is named "IS_SHARED_StorageReport.HTML" and it is placed on network share.
-The report is sent via email to a number of recepients. We use BLAT.EXE + the name of the report to do it.
-The report that is saved on the network share is overwriten every moth since we are using the same name.
Since the report is saved on the network share with the same name overwrites the previous one which is now becoming a problem because we don't have any data for trending.
We are trying to figure out if the is any way to get the batch file modified in order to create a file with a new name. For example something like this:
Could someone help us out with this one?