how to skip over "system volume information"
Posted on 2003-03-30
On my Win2000, VB6 machine:
Using the Filesystemobject in VB to recursively examine some folders, one of the folders that appears is the "system volume information". Its properties are Read only, hidden, system, directory, archive. A folder object can be set to this, but for recursive purposes, I access the folderobject.subfolders collection. But the program crashes at this point, runtime error 70: permission denied. Same type of error when trying to click on this folder in explorer... I can see it in the explorer folded view, but cant get into it.
I don't really care about that folder anyways, so I want to skip over it at that point and continue with the other folders in the list, but I want a method specific to that special type of special folder.
I want to include other hidden, system folders in my examination, so using the file attributes to exclude it are out of the question. I've gone batty looking at each fso and folder property to see if theres something unique for that folder, but don't see anything.
Will this folder ALWAYS be called "System volume information" and allow a folder name exclusion? Will this folder always be in the C:\ path, or will one exist for each NTFS drive? Is this something that originated in NT and carries through to XP, or is it unique to Win2000? Is there an equivalent XP complicated folder?
Does win98 or win95 have any bizarre folders like this - I think not, as I'm sure I one used a similar recursive approach on a Win98 system, but now I'm beginning to doubt myself...