← Back to Disk Recon
Disk Recon : File Management

Disk Recon 14.1

Command Line Options

Disk Recon can generate reports in a fully automated or scheduled way from the command line — no user interaction required. This makes it easy to run nightly folder-size reports or scheduled duplicate scans using Windows Task Scheduler.

/AUTOSTART Automatically starts scanning when Disk Recon is started, using the currently defined parameters.
/FOLDER This option allows you to define which folder are to be included in the scan.
Multiple folders can also be entered identically as you would enter them in the program.
/RECURSIVE The RECURSIVE switch determines whether the scan needs to scan subfolders recursively.
[YES|NO] the default value is YES
/EXTENSION This switch allows you to define a mask for the files that need to be included in the scan.
The default value is *.* (all files)
/TAB This is the type of report that will be created.
Possible values: FOLDERSIZES, FILESEARCH, DUPLICATES, FILEDATES, FILETYPES, FILESIZES, LARGESTFILES, REGEXSEARCH, DRIVES
/OUTPUT Type of output that will be generated.
[XLS|HTML|TXT|CSV|XML]
/OUTPUTFILE Here you need to define the name of the report that will be saved.
If you want to use date or time values in the filename you need to put the formatting string between < and >
example: c:\reports\foldersizes<yymmdd hh-nn-ss>.html
/CONTAINING If you want to search for a piece of text inside a file, you can define this text with this parameter.
example: /CONTAINING "text_to_search"
/REGEXP This parameter defines whether or not the containing text should be considered as a regular expression.
[YES|NO] The default value is NO
/CASING This parameter defines whether or not the containing text should be considered as case sensitive.
[YES|NO] The default value is NO.
/DISPLAY This option allows you to set the display unit.
[B|KB|MB|GB|AUTO] The default value is AUTO
/EXIT This option tells Disk Recon to shut down automatically after the report has been created.

Usage Examples

Daily folder-size report saved as a date-stamped HTML file:

DiskRecon.exe /AUTOSTART /FOLDER "C:\Data" /TAB FOLDERSIZES /OUTPUT HTML /OUTPUTFILE "C:\Reports\foldersizes<yymmdd>.html" /EXIT

Find all .log files modified in the last 30 days and export to Excel:

DiskRecon.exe /AUTOSTART /FOLDER "D:\Logs" /EXTENSION "*.log" /TAB FILESEARCH /OUTPUT XLS /OUTPUTFILE "C:\Reports\logs.xls" /EXIT

Search file contents for a keyword (case-insensitive) and save as CSV:

DiskRecon.exe /AUTOSTART /FOLDER "C:\Projects" /CONTAINING "TODO" /CASING NO /TAB FILESEARCH /OUTPUT CSV /OUTPUTFILE "C:\Reports\todos.csv" /EXIT

Scheduling with Windows Task Scheduler

  1. Open Task Scheduler (search for it in the Start Menu).
  2. Click Create Basic Task and follow the wizard to set the schedule (daily, weekly, etc.).
  3. For the action, choose Start a program and enter the full path to DiskRecon.exe as the program, with your command-line options in the Add arguments field.
  4. Make sure to include /EXIT so Disk Recon closes automatically after the report is saved.