Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Thanks

share|improve this question
    
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. –  Mayur Pipaliya Apr 13 '13 at 19:43
add comment

migrated from stackoverflow.com Dec 5 '12 at 2:36

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

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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