View Full Version : Command prompt: checking file size
Is there a way to check the size of any file with the command prompt?
Mada_Milty
01-23-07, 10:04
The dir command shows the file size.
yea but that shows a list of files, i want to check just one file
matt.chugg
01-23-07, 14:04
I wrote a program called getdetails a while ago to help us in the malware forum.
DOwnload the attached zip file and copy the exe file to your windows directory. you can then call it using the command line.
GetDetails c:\windows\system32\shell32.dll
that will list all file details
If you want just the size add an 'fs' argument (FileSize) at the end as follows
GetDetails c:\windows\system32\shell32.dll fs
That should work
There are other command but I don't have the list at the moment I will post it once I finish digging around the admin forum for my original post with it.
Ignore the NULL file in the zip, thats just to makew the zip different from the one uploaded in our admin forum as you cannot upload 2 files with the same checksum.
Either CD to the directory that contains the file you want to check then:-
dir 'filename'
or
dir 'full-path'\'filename'
Thank you, I found out how to do it using C++. Thank you for your help guys.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.