Data Source Parameters
These command line parameters control specialized data sources and export types beyond the standard file system analysis.
Snapshot
Allows for the creation of file system Snapshots via the command line. When this command line parameter is used, the /path parameter represents the source (scan path) and the /export parameter represents the output path.
foldersizes.exe /snapshot /path:"d:\temp" /export:"d:\temp\snapshot.fssx"
The above command will create a snapshot of the "d:\temp" folder and store the resulting snapshot file ("snapshot.fssx") in the same folder.
Additional snapshot-related command line parameters are described in Snapshot Parameters.
DriveSpace
This parameter can be used to export the contents of the FolderSizes drive space docking panel, which contains a configurable (see program options) list of system drives (fixed, remote, removable, etc.) along with space metrics and other information.
foldersizes.exe /drivespace:"d:\drivespace.pdf" /exit
The export file format will be deduced by the file extension passed in. In the example above, we pass in a ".pdf" file extension, which results in a PDF file format export.
This is the only command line parameter that can be used without also specifying a /path. It can, however, be used in combination with other parameters.
DiskReport
Allows users to trigger the creation (and optional export) of a report via the Disk Reporter. 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. You then pass the resulting text file via the command line as per the example below.
foldersizes.exe /diskreport /path:"d:\diskdrives.txt" /export:"d:\diskreport.html" /exit
The above command causes FolderSizes to launch the Disk Reporter tool, load a set of drives from the "d:\diskdrives.txt" file (which had been created previously from within the Disk Reporter), and then export the resulting report as HTML.
The /diskreportview parameter provides explicit control over which Disk Reporter view is exported, including the capacity planning view and history charts. See Disk Reporter Parameters for full details.
ScanDataTree
Can be used to save the contents of the main window scan data folder tree as HTML. This command line argument is executed after the scan of the current /path is completed.
foldersizes.exe /path:"d:\temp" /scandatatree:"d:\scandatatree.html" /exit