Solved

cmd filesize

Posted on 2010-09-05
6
505 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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-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.

 
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: 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.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iTunes Auto Reverts To v.11 Uninvited 38 804
Sharing a printer 7 614
MS Vista OS 12 267
Right-Clicking In Windows Vista 4 304
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…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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