What is the DiskUsage tool in Windows 10

Windows 10 has a built-in disk space analysis tool called DiskUsage (diskusage.exe). The new micro-application is available in pre-release builds, starting with build 21277.

Windows 10 Build 21277 is a release in the Dev Channel and for the first time brings Windows a disk space analysis program via the command line.
This application can scan your folders or even the entire drive and display the used space from each folder.

DiskUsage is located in C: \ Windows \ System32 \ diskusage.exe. Includes a built-in user guide that you can view while running diskusage /? in a command prompt window.

Let's see how it works.

Note: The tool requires administrator privileges, so open a command prompt window with administrator privileges first.

To find folders in C: \ Windows larger than 1 GB, run the command:

diskusage / minFileSize = 1073741824 / hc: \ windows

The number 1073741824 is 1 GB in bytes.

The diskusage application will display all folders larger than 1 GB on the drive. The gadget has some switches for the list of top N folders and files on the drive or in a folder. For example:

diskusage / t = 5 / hc: \ windows - Shows the 5 largest dirs in a specific location.

Finally, the application allows you to create a configuration file that will keep the defaults for the options you always want to use with the application, e.g. the switch / h. You can also customize the results it returns to block the editing of certain files and folders.

DiskUsage is still under development and still not working properly. However, such a tool was needed in Windows 10. The official announcement will tell us more about the new application.

More

DiskUsage - Disk Usage Description: Summarize disk usage recursively for the given .
Usage      : diskusage [Options] [Directory]
Options    :
    /a, /systemAndReserve    displays size for system files and reserved space
    /c, /csv                 displays in csv format
    /d, /maxDepth=N          displays directory information only if it is N or
                             fewer levels below command line argument
    /e, /minFileSize=SIZE    displays directory information only if its FileSize
                             is greater or equal than SIZE
    /f, /minSizeOnDisk=SIZE  displays directory information only if its SizeOnDisk
                             is greater or equal than SIZE
    /g, /displayFlag=FLAG    specifies the flags value to determin which column(s) to display
                             column          value    description
                             SizeOnDisk      0x001    the on disk size
                             FileSize        0x002    the end of file size
                             SizePerDir      0x004    sum of SizeOnDisk for top level child
                             Files           0x008    number of child files
                             ChildDirs       0x010    number of child directories
                             FilesPerDir     0x020    number of top level child files
                             DirsPerDir      0x040    number of top level child directories
                             CreationTime    0x080    file creation timestamp
                             LastAccessTime  0x100    file last access timestamp
                             LastWriteTime   0x200    file last write timestamp
                             Attributes      0x400    file attributes
    /h, /humanReadable       displays size in human readable format
    /i, /iniFile=FILE        takes all the parameters from an INI file.
                             NOTE: SCENARIO name must be speificed via /j (/scenario)
    /j, /secnario=SCENARIO   specifies the scenario name for the INI file
    /l, /allLinks            count all hardlinks separately (By default, files with multiple
                             hardlinks are counted only once towards the first link name)
    /m, /multipleName        count only files with more than one link names
    /n, /nameFilter=FILTER   count only files whose name matches the name filter
    /p, /preferredPath=PATH  count files with multiple link names towards the first link that's
                             under PATH if it exists
                             NOTE: This options must not be specified togerther
                             with /l (/allLinks)
    /q, /             recurse into virtual directories /r, /skipReparse skip recursing into reparse directories /s, /skipResurse skip recursing into child directories when calculating sizes /t, /TopDirectory=N displays Top N directories by SizeOnDisk in descending order /u, /TopFile=N displays Top N files by SizeOnDisk in descending order /v, /verbose displays verbose error information /x, /clearDefault do not display the default selected columns

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.100 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).