# GetSizes

The **GetSizes** internal command can be used to:

* Calculate and display the total sizes of selected folders
* Calculate the total sizes of all folders in the current file display
* Calculate the MD5 checksum for all selected files

**Command Arguments:**

| Argument        | Type | Possible values | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| --------------- | ---- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| _(no argument)_ | -    | -               | <p>Calculate the total size of all selected folders. If there are no folders currently selected, all folders in the current file display will have their sizes calculated.</p><p><em>Example:</em> <code>GetSizes</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| EVERYTHING      | /O   | _(no value)_    | <p>Calculates the sizes of selected folders using <a href="../../../additional_functionality/everything_integration">Everything</a> if possible. If Everything is not installed, or the current folder is not indexed, the sizes will be calculated manually (by recursively scanning the folder contents).</p><p><em>Example:</em> <code>GetSizes EVERYTHING</code></p>                                                                                                                                                                                                                                                                                                                                                                                   |
|                 |      | **no**          | <p>If the option is set on the <a href="../../../preferences/preferences_categories/folders/folder_sizes">Folder Sizes</a> Preferences page to use Everything to calculate folder sizes, this command overrides it and calculates them manually.</p><p><em>Example:</em> <code>GetSizes EVERYTHING=no</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|                 |      | **only**        | <p>Calculates the sizes of selected folders using Everything if possible. If not possible, sizes will not be calculated at all (nothing happens).</p><p><em>Example:</em> <code>GetSizes EVERYTHING=only</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| HASH            | /K   | _\<type>_       | <p>Calculate a checksum for all selected files using the specified hash algorithm. If the appropriate hash column is not currently displayed in the file display it will be added automatically. Using this command overrides the <strong>max_md5_file_size</strong> setting on the <a href="../../../preferences/preferences_categories/miscellaneous/advanced_options"><strong>Miscellaneous / Advanced</strong></a> page in Preferences.</p><p>Supported hash algorithms are <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha512</strong>, <strong>crc32</strong>, <strong>crc32_php</strong>, <strong>crc32_php_rev</strong>, and <strong>blake3</strong>.</p><p><em>Example:</em> <code>GetSizes HASH=md5</code></p> |
| IGNOREJUNCTIONS | /O   | _(no value)_    | <p>Ignores junctions and softlinks within folders when calculating their size. This overrides the <strong>Preferences / Folders / Folder Behaviour / Ignore junctions and softlinks when calculating folder sizes</strong> Preferences option.</p><p><em>Example:</em> <code>GetSizes IGNOREJUNCTIONS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|                 |      | **no**          | <p>Does not ignore junctions and softlinks when calculating the sizes of folders.</p><p><em>Example:</em> <code>GetSizes IGNOREJUNCTIONS=no</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| NODESELECT      | /S   | _(no value)_    | <p>Prevent the <strong>GetSizes</strong> command from deselected files and folders once their sizes/checksums have been calculated. This option only works if the <strong>Postpone file deselection until end of function</strong> option on the <a href="../../../preferences/preferences_categories/file_operations/options"><strong>File Operations / Options</strong></a> page in Preferences is turned on.</p><p><em>Example:</em> <code>GetSizes NODESELECT</code></p>                                                                                                                                                                                                                                                                               |
| USEHASHCACHE    | /S   | _(no value)_    | <p>In conjunction with the <strong>MD5</strong> and <strong>SHA</strong> options, this enables the use of the checksum cache. If a file has previously had its checksum cached, and the file doesn't appear to have changed, the cached value will be used.</p><p><em>Example:</em> <code>GetSIZES MD5 USEHASHCACHE</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                             |
