Directory Scan Parameters
Previous  Top  Next

This program has the capability to handle parameters passed to it. The parameters allow you to either setup run time defaults - or to run the program in a 'Batch' like mode. The following are the parameters that have been implemented. If you require other aspects of the program to be surfaced to run in 'Batch Mode' then send an email to support@timeacct.com.

As well as the Directory Scan Parameters - there are also File Search Parameters.


Directory Scan Parameters

/B- Run this program in Batch Mode. This will run the program without displaying the any of the screens.  
 
/I=- Use the Input Specifications held in the file after the '=' sign to run the sizing.  
 
/D=- Tells the program to make the string following the equal sign the directory to be sized.  
      ie. /D=C:\Winnt\System32    This will size the System32 directory  
 
/PG- Print the Graph report  
/SG=- Save the Graph to the file specified after the equal sign  
/EG=- Email the Graph to the Address specified after the equal sign  
 
/PR=- Print the Tree based report. The value following the '=' sign is the number of levels to print the tree.  
 
/PR- Print the Tree based report. This parameter prints the report using the /TREELEVEL= parameter to detemine the number of levels to print  
 
/TREELEVEL= - This parameter sets the print level for the TreeReport, Excel export and RTF documents. It is also used in the NTFS reports and exports.  
 
/E=- Save the Tree Report to an Excel file specified in following the '=' sign.  
/PDF=- Save the Tree Report to a PDF file  
 
/SAVE= - Save the Analysis Sizing results to an XML Dump file specified after the '=' sign.  
 
/DBSAVE= - Save the Analysis sizing results to a Database. The parameter after the '=' sign is a three parter. The parameter is divided into three parts - seperated by commas (,). The first is the name of the database (default database is called DB1) - and the second is the Description you would like to place with the sizing - and the third is the levels to save in the Tree.  
Examples:  
   /DBSAVE=DB1,MyDescription,3 - saves the current sizing to DB1, with MyDescription - but only saves 3 levels of directories in the Tree  
   /DBSAVE=DB1,MyDescription - saves the current sizing to DB1, with MyDescription - all levels of the tree  
 
/EMAIL= - Send the TreeReport to the address(s) following the equal sign. You can also specify a Subject line (in addition to the one created by Disk Triage) by putting a semi colon after the email address. So it would look like /EMAIL=info@timeacct.com;This is an example subj line  
 
/EMAILRPTFMT= - Send the Report by email in the following formats: EXCEL, RTF, PDF. The default if this parameter is not specified is RTF.  
NOTE: This applies to all email reports - not just the Tree Report.  
 
/RN- Runs the loaded InputSpecs as soon as the program starts  
 
/PDI- Prints the Disk Information report  
/PDFDI- Exports the Disk Information Report to a PDF file  
/EXDI- Exports the Disk Information Report to a Excel file  
/EDI- Emails the Disk Information Report to an email address (RTF format)  
 
/PNTFS- Prints the NTFS report - using the /TREELEVEL to print the levels of the tree  
/PNTFS=- Prints the NTFS report - The value following the '=' sign is the number of levels to print the tree  
/PNTFSEXCEL=- Exports the NTFS Report to an Excel file  
/ENTFSRTF=- Exports the NTFS Report to a RTF file  
/ENTFSPDF=- Emails the NTFS Report to a PDF File  
 
/PFLIST=- Prints the File List Report  
/EFLIST=- Emails the File List Report to email address after '=' sign  
   /EFLIST=support@timeacct.com;Subject;1;0  
/EXFLIST=- Exports the File List Report to an Excel File  
/PDFFLIST=- Exports the File List Report to a PDF File  
/EFL=- Exports the File List to a file  
 
NOTE: each of the above file list parameters is followed by two values of either 0 or 1. The first is whether or not files in sub-directories are included in the report - and the second is whether or not File Ownership information is included in the report.
   For example
       /EFL=c:\filename.txt;1;1 would save the list to a file - including all sub-directories and file owner info


/PASIZE   - Prints the Analysis Size Report
/PAATTR   - Prints the Analysis Attribute Report
/PACRTDATE   - Prints the Analysis Create Date Report
/PAMODDATE   - Prints the Analysis Modify Date Report
/PAACCDATE   - Prints the Analysis Access Date Report
/PATIME   - Prints the Analysis Time Report
/PAFILETYPE   - Prints the Analysis File Type Report
/PAFILEEXT   - Prints the Analysis File Extension Report
/PAFILEOWNER   - Prints the Analysis File Owner Report
/PANAMESIZE   - Prints the Analysis Name Size Report
/PT10S   - Prints the Analysis Top 10 Files by Size Report
/PT10D   - Prints the Analysis Top 10 Files by Date Report

/EASIZE=   - Emails the Analysis Size Report to email address after '=' sign
/EAATTR=   - Emails the Analysis Attribute Report to email address after '=' sign
/EACRTDATE=   - Emails the Analysis Create Date Report to email address after '=' sign
/EAMODDATE=   - Emails the Analysis Modify Date Report to email address after '=' sign
/EAACCDATE=   - Emails the Analysis Access Date Report to email address after '=' sign
/EATIME=   - Emails the Analysis Time Report to email address after '=' sign
/EAFILETYPE=   - Emails the Analysis File Type Report to email address after '=' sign
/EAFILEEXT=   - Emails the Analysis File Extension Report to email address after '=' sign
/EAFILEOWNER=   - Emails the Analysis File Owner Report to email address after '=' sign
/EANAMESIZE=   - Emails the Analysis Name Size Report to email address after '=' sign
/ET10S=   - Emails the Analysis Top 10 Files by Size Report to email address after '=' sign
/ET10D=   - Emails the Analysis Top 10 Files by Date Report to email address after '=' sign

Email Note:    You can also specify a Subject line (in addition to the one created by Disk Triage) by putting a semi colon after the email address. So it would look like /EASIZE=info@timeacct.com;This is an example subj line

/EXASIZE=   - Exports the Analysis Size Report to an Excel File
/EXAATTR=   - Exports the Analysis Attribute Report to an Excel File
/EXACRTDATE=   - Exports the Analysis Create Date Report to an Excel File
/EXAMODDATE=   - Exports the Analysis Modify Date Report to an Excel File
/EXAACCDATE=   - Exports the Analysis Access Date Report to an Excel File
/EXATIME=   - Exports the Analysis Time Report to an Excel File
/EXAFILETYPE=   - Exports the Analysis File Type Report to an Excel File
/EXAFILEEXT=   - Exports the Analysis File Extension Report to an Excel File
/EXAFILEOWNER=   - Exports the Analysis File Owner Report to an Excel File
/EXANAMESIZE=   - Exports the Analysis Name Size Report to an Excel File
/EXT10S=   - Exports the Analysis Top 10 Files by Size Report to an Excel File
/EXT10D=   - Exports the Analysis Top 10 Files by Date Report to an Excel File

/PDFASIZE=- Exports the Analysis Size Report to a PDF File  
/PDFAATTR=- Exports the Analysis Attribute Report to a PDF File  
/PDFACRTDATE=- Exports the Analysis Create Date Report to a PDF File  
/PDFAMODDATE=- Exports the Analysis Modify Date Report to a PDF File  
/PDFAACCDATE=- Exports the Analysis Access Date Report to a PDF File  
/PDFATIME=- Exports the Analysis Time Report to a PDF File  
/PDFAFILETYPE=- Exports the Analysis File Type Report to a PDF File  
/PDFAFILEEXT=- Exports the Analysis File Extension Report to a PDF File  
/PDFAFILEOWNER=- Exports the Analysis File Owner Report to a PDF File  
/PDFANAMESIZE=- Exports the Analysis Name Size Report to a PDF File  
/PDFT10S=- Exports the Analysis Top 10 Files by Size Report to a PDF File  
/PDFT10D=- Exports the Analysis Top 10 Files by Date Report to a PDF File  











Examples:

1. Simple Example
Disk Triage.exe /B /I="C:\Program Files\Disk Triage\InputSpecs\Standard.inp" /PR=-1

The above sample will start Disk Triage in Batch mode, load the input specs

2. Another Simple Example

Disk Triage.exe /B /I="C:\Program Files\Disk Triage\InputSpecs\standard.inp" /PR=-1

The above example shows how to run Disk Triage in batch mode - loading the input specs called standard - and printing the entire tree report.

3. Use in a Batch File

Because Disk Triage has parameters - you can even use the DOS positional variables... so lets say you had created a batch file (*.bat) file that was called DTBatch.bat

Disk Triage.exe /B /I=C:\Program Files\Disk Triage\InputSpecs\default.inp /D=f:\home\%1 /E=f:\home\%1\%1.xls /email=%2@yourcompany.com

The above example would be called from the command line like "DTBatch.bat userdirectory useremail". This would then run Disk Triage - perform a sizing of their directory - and store the results as a Excel spreadsheet in their directory - and email them a copy of the report in RTF format.

4. Save Sizing to a Database

Disk Triage.exe /B /I=default.inp /DBSAVE=DB1,'My Sizing Name'

Here we are saving the entire sizing to the Database called DB1. We could restrict the number of tree levels to save - by putting a number at the end - so like

Disk Triage.exe /B /I=default.inp /DBSAVE=DB1,'My Sizing Name',3

which would save only 3 levels of the tree to the database