Solved

cmd filesize

Posted on 2010-09-05
6
493 Views
Last Modified: 2012-06-21
using only windows cmd
(no batch scripts)

command to find filesize of a
file
directory
0
Comment
Question by:rgb192
6 Comments
 
LVL 20

Expert Comment

by:woolnoir
ID: 33607307
what do you mean by 'only windows cmd', powershell ? or what ?
0
 

Accepted Solution

by:
jason104 earned 250 total points
ID: 33607391
If  your just using CMD, use DIR
0
 
LVL 95

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 250 total points
ID: 33607626
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Expert Comment

by:ola_erik
ID: 33607998
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
 
LVL 5

Expert Comment

by:shanyuen
ID: 33608551
DIR /S /A <directory>
0
 

Author Closing Comment

by:rgb192
ID: 33657612
thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The Service applet starts in Extended Mode by Default, with a taskpad on the left of the services pane. This view mode was introduced in XP. As I find it not very usefull, I like to use the Standard view as default, and without the Console tree. …
So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now