How does one retrieve the directory size (in bytes) using DirectoryInfo, without looping through the directory and retrieving each file size with FileInfo? I'm currently using the FileSystemObject, example:
Maybe this world is another planet’s Hell.
Aldous Huxley
Code:
Dim oFS As Object = CreateObject("Scripting.FileSystemObject")
Dim oDir As Object = oFS.GetFolder("MyFolder")
Dim nBytes as Long = CLng([b]oDir.Size[/b]) [COLOR=green]'total folder size[/color]
Maybe this world is another planet’s Hell.
Aldous Huxley