PDA

View Full Version : Command prompt: checking file size


lio83197
01-23-07, 09:04
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.

lio83197
01-23-07, 11:03
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.

Alaskapro
01-23-07, 16:28
Either CD to the directory that contains the file you want to check then:-

dir 'filename'

or

dir 'full-path'\'filename'

lio83197
01-24-07, 07:18
Thank you, I found out how to do it using C++. Thank you for your help guys.