Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

cmd filesize

using only windows cmd
(no batch scripts)

command to find filesize of a
file
directory
0
rgb192
Asked:
rgb192
2 Solutions
 
woolnoirCommented:
what do you mean by 'only windows cmd', powershell ? or what ?
0
 
jason104Commented:
If  your just using CMD, use DIR
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
As stated, DIR shows you the size of files - DIR FILENAME.EXT or DIR FILESPEC*.???

When it shows you the summary at the end of DIR (with no file specification provided) it's only showing the totals for that one directory.

When you use a DIR /S it is showing the total size of each directory within the directory and the files in that directory.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ola_erikCommented:
Possible method: a legacy DOS file manager, if you can get files on your system

http://en.wikipedia.org/wiki/Volkov_Commander
http://vvv.kiev.ua/

make new folder
copy files to new folder
go to folder with cd
run vc.exe
go to parent folder
press alt-f6
stand on folder
read filesize of tree including subfolders (it seems to have some upper limit on size)

The filemanager also lets you view files (f3),  as you asked for in another question.
0
 
shanyuenCommented:
DIR /S /A <directory>
0
 
rgb192Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now