I am trying the code below in a .vbs script on Windows Vista to find the total size of a folder and any of its subfolders, and I'm plugging in different folder paths to test it. This script is based on one at the MS Scripting Center, and it works for many folders. It's also pretty fast in calculating the folder size. However, for some folders it will generate an error of Permission Denied (800A0046).