Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My computer has crashed, so I only have access to the CMD. I am backing up my hard drive, and I just want to make sure that I copied everything from my Documents folder.

How do I check the entire say, /User/Desktop size using MS-DOS? When I use dir, it will only show the file sizes, and the number of folders inside Desktop!! What do I do?


share|improve this question

migrated from Dec 5 '12 at 2:36

This question came from our site for professional and enthusiast programmers.

Are you really talking about MS-DOS, or do you mean the Windows command prompt, e.g., while booted in Safe Mode? – Harry Johnston Dec 10 '12 at 0:09
Executing C:\> dir /A /S would help! Overall size will be displayed at the end of the command. – Mayura Apr 13 '13 at 19:43

This command will list the size of a given directory:

dir "c:\users\yourNameHere" | find "(s)"

This command will copy directories (and contents) and the /v switch will verify that the destination files are identical to the source files:

xcopy "source\dir\path" "destination\dir\path" /v

Here is documenation about xcopy command and switches.

share|improve this answer

Download du.exe from SysInternals. Slap that on a USB drive and run this from your cmd prompt. This will allow you get a complete listing of all subfolders with sizes. For example, you could run: du /accepteula desktop to get the size of the desktop folder. (You'll need the /accepteula param to suppress the EULA dialog that normally comes up when you run this.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.