Hello all,
Sometimes I hate programming - usually when I run out of beer! Today is that day!
Anyway, I need to be able to obtain the size of a directory on the file system without having to iterate through all subdirectories, calculate the file sizes, tally them and then produce a result.
I tried the following to no avail.
Dim tmpdirinfo As DirectoryInfo = New DirectoryInfo(dirname)
dirlength = tmpdirinfo.GetFileSystemInfos.LongLength
I get a result - but it is not the size of the directory. I tried researching this on MSDN, various other websites and numerous books - they all are not specific enough about the GetFileSystemInfos subclass - arghhh.
Any help would be appreciated. Thanks again...
inzo
Sometimes I hate programming - usually when I run out of beer! Today is that day!
Anyway, I need to be able to obtain the size of a directory on the file system without having to iterate through all subdirectories, calculate the file sizes, tally them and then produce a result.
I tried the following to no avail.
Dim tmpdirinfo As DirectoryInfo = New DirectoryInfo(dirname)
dirlength = tmpdirinfo.GetFileSystemInfos.LongLength
I get a result - but it is not the size of the directory. I tried researching this on MSDN, various other websites and numerous books - they all are not specific enough about the GetFileSystemInfos subclass - arghhh.
Any help would be appreciated. Thanks again...
inzo