Solved

cmd filesize

Posted on 2010-09-05
6
503 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
BSOD on recently infected machine 10 315
Snap-do keeps coming back 3 511
Hp G70 webcam not working 5 747
Event ID: 7016 / Source: Microsoft-Windows-GroupPolicy 7 130
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

791 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