Re: How to detect file size and file size on disk...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

If you still have the below requirement, then let me know so that I create a
commandline tool to get the results....

Babu

"D R" <a@xxxxx> wrote in message
news:eYjwQ0WnGHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

Please excuse the cross post, but I didn't get any good responses in other
groups... anyway...

Using Windows Explorer, when I right click a folder and select
"properties"
the GUI totals up the number of folders and files, and provides two
figures
for the size of all files, namely, file size, and file size on disk. So,
when I have compressed files present, the size on disk is lower than the
file size.

How do I get the same number using the "fso" object in WSH/VBScript, or
WMI
(e.g. CIM_DataFile)? I've got a script that will recurse through folders
and files, and totals up the file sizes, but I can't figure out how to get
the two sizes (i.e. file size on disk, and file size when uncompressed)
using WSH/VBScript?

I'm not look for any code examples, just a quick response pointer in the
right direction.

Thanks,
Dave.



.



Relevant Pages

  • How to determine size of compressed files in NTFS using WSH/VBScript or WMI?
    ... for the size of all files, namely, file size, and file size on disk. ... I've got a script that will recurse through folders ... and files, and totals up the file sizes, but I can't figure out how to get ... I'm not look for any code examples, just a quick response pointer in the ...
    (microsoft.public.scripting.vbscript)
  • How to detect file size and file size on disk...
    ... but I didn't get any good responses in other ... for the size of all files, namely, file size, and file size on disk. ... I've got a script that will recurse through folders ... and files, and totals up the file sizes, but I can't figure out how to get ...
    (microsoft.public.scripting.wsh)
  • How to total space used by compressed files in NTFS...
    ... the GUI totals up the number of folders and files, ... for the size of all files, namely, file size, and file size on disk. ... I've got a script that will recurse through folders ... and files, and totals up the file sizes, but I can't figure out how to get ...
    (microsoft.public.windows.server.scripting)
  • RE: Incorrect Disk Space reading
    ... How to Locate and Correct Disk Space Problems on NTFS Volumes in Windows XP ... cannot find the cause or locate the folders and files that cause the NTFS ... The Cluster Size Is Too Large ...
    (microsoft.public.windowsxp.hardware)
  • Re: Hard Drive Space Disappeared
    ... System Restore will account for nearly 4 gb of the difference, ... some Uninstall folders in your Windows folder ... contents to save Disk Space. ... Free Space 3.86 GB. ...
    (microsoft.public.windowsxp.hardware)