What is the easiest way to find the size of a file on the HDD? Can I get the 'true' size or just the space occupied (i.e. dependant on block size)
Printable View
What is the easiest way to find the size of a file on the HDD? Can I get the 'true' size or just the space occupied (i.e. dependant on block size)
Use the FileLen method.
Code:iFileSize = FileLen("C:\MyFile.txt")
You can use use the File System Object to get the size of a file or folder.
Thanks
Why use additional components when you don't need to?Quote:
Originally posted by Illspirit
You can use use the File System Object to get the size of a file or folder.
i dunno, i was only offering an alternative solution