Solved

cmd filesize

Posted on 2010-09-05
6
502 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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. …
There are many reasons a PC runs slower than when it was new, ranging from malicious software intended to mess things up to simple general Windows use.  Your PC performance may slowly degrade over time without you noticing but when you buy a PC from…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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