Disk Reporter Parameters
The /diskreport command line parameter launches the Disk Reporter and generates reports from a previously saved drive listing file. You must first create a report within the Disk Reporter and use the Save toolbar function to save the drive listing to the file system.
Basic Usage
At minimum, use /diskreport with /path (pointing to a saved drive listing file) and /export (specifying the output file). The export file format is deduced from the file extension.
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /export:"d:\report.html" /exit
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /export:"d:\report.csv" /exit
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /export:"d:\chart.png" /exit
When no /diskreportview parameter is specified, FolderSizes uses legacy behavior: rich formats (HTML, PDF, Excel) produce a combined report, image formats (PNG, JPG, BMP, GIF) export the chart, and flat formats (CSV, TXT, XML) export the detail grid.
DiskReportView
The /diskreportview parameter gives you explicit control over which Disk Reporter view is exported. The following view keywords are supported (case-insensitive):
| Keyword | Description |
|---|---|
| detail | The detail grid view (drive listing with size, free space, etc.) |
| capacity | The capacity planning view (growth rate, days until full, etc.) |
| usedhistory | Used space history chart (image export) |
| freehistory | Free space history chart (image export) |
| all | All views combined into a single rich-format report |
Exporting a Single View
To export a specific view, pass its keyword to /diskreportview:
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /diskreportview:"capacity" /export:"d:\capacity.csv" /exit
History charts must be exported to image formats (PNG, JPG, BMP, GIF):
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /diskreportview:"freehistory" /export:"d:\free.png" /exit
Exporting Multiple Views
To export multiple views in a single pass, separate both the view keywords and export paths with pipe ("|") symbols. The order of views must correspond to the order of export paths.
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /diskreportview:"detail|capacity" /export:"d:\detail.csv|d:\capacity.csv" /exit
You can mix data exports and chart exports in the same command:
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /diskreportview:"detail|capacity|usedhistory|freehistory" /export:"d:\detail.txt|d:\capacity.xml|d:\used.png|d:\free.jpg" /exit
Exporting All Views
Use the "all" keyword to produce a combined report containing all views. This requires a rich export format (HTML, PDF, or Excel).
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /diskreportview:"all" /export:"d:\report.pdf" /exit
Other Supported Parameters
The following parameters can be combined with /diskreport:
- /date —append a date/time stamp to the export file name
- /email —send the exported report(s) via email
- /saveeventlog —save the event log to file after execution
- /viscols —control which columns are included in the export
- /exit —close FolderSizes after the operation completes