finding folder size in Vista and cmd prompt

mike in london

Senior Member
Messages
1,588
Reaction score
26
Location
London, UK
Vista doesnt show folder sizes grrrr, how can i get a list of a directory and its folders sizes easily?

can i via cmd? If so Ialso i cant remember how to change directories/drives in the command prompt. I am sure i used to just type 'cd D:' for example and it would take me there, I just get this, it displays D: then reverts back to the current place.

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Windows\system32> cd D:
D:\

C:\Windows\system32>

Mike

--
http://www.thephotographer.me.uk
 
Vista doesnt show folder sizes grrrr, how can i get a list of a
directory and its folders sizes easily?
Right click on the folder & select properties
can i via cmd? If so Ialso i cant remember how to change
directories/drives in the command prompt. I am sure i used to just
type 'cd D:' for example and it would take me there, I just get this,
it displays D: then reverts back to the current place.
Change drives:

D: [enter]

Change directories:

CD \SomeFolder\SomeSubFolder

or

CD \SomeFolder
CD SomeSubFolder

Note beginning backslash starts at the root of the directory tree, omitting the backslash assumes the current folder.

Once you're in the folder you want to be

DIR S

will run through a listing of all files in all sub-folders and give you a report of the space used.

--
Alan
http://www.skylandsphotography.com
http://www.pbase.com/abh
http://www.shutterfreaks.com/gallery/abh
 
list directories/folders and their sizes it would be really useful to know how?

Is it just to dificult for the system to do this on the fly?

James
Vista doesnt show folder sizes grrrr, how can i get a list of a
directory and its folders sizes easily?

can i via cmd? If so Ialso i cant remember how to change
directories/drives in the command prompt. I am sure i used to just
type 'cd D:' for example and it would take me there, I just get this,
it displays D: then reverts back to the current place.

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Windows\system32> cd D:
D:\

C:\Windows\system32>

Mike

--
http://www.thephotographer.me.uk
 
You can probably tweak the command below to do this:

dir C:\FolderName a -p s o:gen > filelisting.txt

The " s" will include all subdirectories... Remove it if you just want the single folder listed.

--
Passing the torch of knowledge is a genetic responsibility.

http://photo.karywall.net/
 
You can probably tweak the command below to do this:

dir C:\FolderName a -p s o:gen > filelisting.txt

The " s" will include all subdirectories... Remove it if you just
want the single folder listed.


--
Passing the torch of knowledge is a genetic responsibility.

http://photo.karywall.net/
excellent!

would that work for all folders and files on just D: too if I miss out 'folder name'?

Mike
--
http://www.thephotographer.me.uk
 
Directory Opus, a Windows Explorer replacement can do all this stuff under Tools> Print Folder, it can print or create a file or just copy it to the clipboard, subdirectories as well if needed.
 
would that work for all folders and files on just D: too if I miss
out 'folder name'?

Mike
--
I think so Mike... It appears to when I test it. So... C:\ with the s will list every single folder/file on the C: drive including modified dates and file sizes with a summary total at the end of the list; without the s you'll just get the folders and files on C and no subfolders etc..

By the way if you haven't already figured it out "filelisting.txt" is where the output is sent to so you can change that to any filename and/or location you wish

Regards-

Karbo

Passing the torch of knowledge is a genetic responsibility.

http://photo.karywall.net/
 

Keyboard shortcuts

Back
Top