Have you looked into the Microsoft tool diruse?It's a command line tool that does exactly what you're looking for. It's part of the server tools for Windows 2000 & 2003, but is still available for download: Microsoft Diruse TechNet article. Sep 30, 2010 We have a script that uses the DirUse command from the windows 2000 resource kit. This script runs very often and is resource intensive. It runs against 2003 R2 servers currently. The script uses: diruse /s /q:0 /d some directory append to some file to build a tree of non-zero entities. My quest Hi, As this issue is related to scripting, I suggest. May 03, 2009 Folder-Size - posted in Suggestions: Hi, I have a problem with the folder-size. If I use the example-script form the help-file it fails if there a files or folder with illegal filenames. I have some folders on a NT-Server which were created with a Macintosh. A Macintosh can write filenames with a / inside a name or a space at the end of the name. DIRUSE.EXE (27.00 KB) ftpmirror.exe (96.00 KB) ROBOCOPY.EXE (78.00 KB) TSCC.exe (169.67 KB) NetViewerK.exe (1.54 MB) PDFX4SALE.exe (4.37 MB) TeamViewerQS.exe (3.90 MB) TeamViewerQSde.exe (3.90 MB) TeamViewerQSes.exe (3.90 MB) TeamViewerQSfr.exe (3.90 MB) TeamViewerQSit.exe (3.90 MB) TeamViewerQSpl.exe (3.90 MB) TeamViewerQSru.exe (3.90 MB).
-->By Mark Russinovich
Published: February 13, 2017
] Download Du(174 KB)
Introduction
Du (disk usage) reports the disk space usage for the directory youspecify. By default it recurses directories to show the total size of adirectory and its subdirectories.
Using Disk Usage (DU)
Usage: du [-c[t]] [-l <levels> | -n | -v] [-u] [-q]<directory>
![Diruse.exe Diruse.exe](https://xunyangit.files.wordpress.com/2010/06/9cac430dcedf2602e8209b13c2e4c84c.png)
Parameter | Description |
---|---|
-c | Print output as CSV. Use -ct for tab delimiting. |
-l | Specify subdirectory depth of information (default is all levels). |
-n | Do not recurse. |
-v | Show size (in KB) of intermediate directories. |
-u | Count each instance of a hardlinked file. |
-q | Quiet (no banner). |
CSV output is formatted as:
Path, CurrentFileCount, CurrentFileSize, FileCount, DirectoryCount,DirectorySize
] Download Du(174 KB)
Disk Usage Download
on April 30, 2014, in
Imagine you need to determine the size of a directory, but you do not have access to it and cannot change the permissions, either. Such a situation is common with Windows user profiles. This article shows how to deal with it.
Determine Folder Size
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.
Of course, there is always the possibility of rolling your own, for example as a PowerShell script. Rolle bolle game for sale. But it is much easier (and also less error-prone) to resort to a proven tool like the Sysinternals interpretation of the popular Unix tool du. Usage is simple:
Du Command Windows
There is only one problem with du: it cannot bypass security and count every file regardless of permissions. Basically you only see what you are allowed to see. Here is an interesting way around that limitation, using robocopy’s ability to list every file in backup mode:
Diruse Powershell
Do you know of other ways to calculate a directory’s size without having access to it? Let us know! Watch one piece dubbed english.