Apr 30, 2014 There are several ways to determine the size of a directory from the command line. But the possibly obvious choice, the command diruse.exe, cannot be used with user profiles – like many other tools it does not know how to handle the directory junctions in V2 profiles. DIRUSE.EXE (27.00 KB) ftpmirror.exe (96.00 KB) robocopy.exe (78.00 KB) CThumb.exe (600.50 KB) TSCC.exe (169.62 KB) dotNetFx40Fullsetup.exe (868.57 KB) NetViewerK.exe (1.54 MB) PDFX4SALE.exe (4.34 MB) TeamViewerQS.exe (3.80 MB) TeamViewerQSde.exe (3.80 MB) TeamViewerQSes.exe (3.80 MB) TeamViewerQSfr.exe (3.80 MB) TeamViewerQSit.exe (3.80 MB). The Windows Support Tools for Microsoft Windows XP are intended for use by Microsoft support personnel and experienced users to assist in diagnosing and resolving computer problems.
- Disk Usage v1.61.; 2 minutes to read; In this article. By Mark Russinovich. Published: February 13, 2017 Download Du (174 KB) Introduction. Du (disk usage) reports the disk space usage for the directory you specify.
- Called diruse.exe, which allows an administrator to query folders on a. Windows server to get the the content size. This utility is part of the.
How to find the size of a file
In Windows, we can use dir command to get the file size.
But there is no option/switch to print only the file size.
Get size for all the files in a directory
Dir command accepts wild cards. We can use ‘*” to get the file sizes for all the files in a directory.
We can also get size for files of certain type. For example, to get file size for mp3 files, we can run the command ‘dir *.mp3‘.
The above command prints file modified time also. To print only the file name and size we can run the below command from a batch file.
Save the above commands to a text file, say filesize.bat, and run it from command prompt.
Get directory size
There’s no Windows built in command to find directory size. But there is a tool called diruse.exe which can be used to get folder size. This tool is part of XP support tools. This command can be used to get directory size. This command’s syntax is given below.
As you can see in the above example, diruse prints the directory size in bytes and it also prints the number of files in the directory(it counts the number of files in the sub folders also)
To get the directory size in mega bytes we can add /M switch.
Though the tool is intended for XP and Server 2003, I have observed that it works on Windows 7 also. The above examples were indeed from a Windows 7 computer.
In terms of measures of capacity or size, computer scientists prefer to count things using powers of two. This system is convenient because digital computers use the binary number system.
Diruse Powershell
Table 1 shows the powers of 2 that are most often used. As the table shows, the abbreviation for 210 is K, where the K comes from the stem “kilo”. The prefix kilo is used because 1024 is closest to 1000. Similarly, the prefix mega is used for 220 because its value is closest to 1,000,000. When these units are used to specify storage capacity of a machine, we really do mean the exact power of 2. For example, a machine that has 8 megabytes of memory has 8 X 2020 bytes, or 8,388,608 bytes of memory. Table 1: Commonly used powers of 2 and their abbreviations
A directory Temp2 will be used in the following examples with real data results obtained from the NT Resource Kit utility Diruse.exe. diruse Temp2 results in 674369228 bytes diruse /k Temp2 results in 658563.92 KB diruse /m Temp2 results in 643.13 MB |