Here is the text from the FolderSizes on line help:
Command line support
FolderSizes supports command-line execution (e.g. from a command prompt) with parameters. Parameters are not case sensitive. These can be used to schedule specific operations, or to call certain functions from a batch file, for example. Note that passing command line parameters into FolderSizes will automatically suppress the display of the splash screen and the welcome wizard (if they are configured to display normally).
The following command line parameters are supported:
· A "path" parameter, which must exist if any other command-line operations are to be executed. An example which would allow you to scan the temp folder on your D drive would look like:
Example: foldersizes.exe /path:"d:\temp"
· An "html" parameter, which will generate an HTML report on disk once the file system scan has completed. You must provide a complete path for the HTML report file, like this:
Example: foldersizes.exe /path:"d:\temp" /html:"d:\tmp\report.html"
Note: HTML reports can be generated only for normal scans, and not file reports, which are described below.
· A "graphtype" parameter, for switching between the "bar" and "pie" graph types prior to any export processes taking place. For example, if you wanted to export an HTML report via the command line, but prefer to have a pie graph (versus the default bar graph), you can do something like the following:
Example: foldersizes.exe /path:"d:\" /html:"d:\report.html" /graphtype:"pie"
· An "xml" parameter, which behaves almost identically to the "html" parameter described above. Except, of course, that it saves the file out in XML format.
Example: foldersizes.exe /path:"d:\" /xml:"d:\myreport.xml"
· A "text" parameter that allows the primary detail view data to be exported in CSV format. Note that the extension of the filename is important if you use ".csv", the export fields will be separated with commas; if you use ".txt", the export fields will be separated with tabs.
Example: foldersizes.exe /path:"d:\temp" /text:"my-csv-report.csv"
· A "date" parameter that will force any output path names (such as those specified by "/hmtl", "/xml", or "/csv") to include the current date in mm-dd-yy format. For example, if you pass in an "/html" path of "d:\temp\test.html" and include the "/date" parameter, the output path will be transformed into "d:\temp\test_01-03-04.htm
Example: foldersizes.exe /path:"d:\" /xml:"d:\myreport.xml" /da
· A "filereport" parameter, which tells FolderSizes to immediately launch a specific type of file report and display it on-screen. The "filereport" flag must be followed by one of the types listed below.
Example: foldersizes.exe /path:"d:\temp" /filereport:"largest"
o "largest" - largest files in the scanned folder
o "oldest" - oldest files in the scanned folder
o "temporary" - temp files in the scanned folder
o "duplicate" - duplicate files in the scanned folder
o "types" - file types in the scanned folder
o "typesgraph" - file types (graph view) in the scanned folder
o "attribs" - distribution of files by file attributes
o "attribsgraph" - graph view of file distribution by attributes
o "owners" - distribution of files by owner
o "ownersgraph" - graph view of file distribution by owner
· There is also an "exit" parameter, which will cause FolderSizes to exit once all the command line scanning options are completed. This allows for the generation of an HTML report (for example) on a scheduled basis, with FolderSizes automatically terminating in between executions. Note: "exit" cannot be used in conjunction with the "filereport" parameter (it will be ignored in this case).
Main Topics
Browse All Topics





by: pablovrPosted on 2008-07-27 at 07:44:22ID: 22098609
There is a program I use: FolderSizes:
http://www.foldersizes.com
You can use it in graphical mode and also from the command line.
Where you can see the desired info is with the detail view.