Get All Folder Names In A Computer

Category:
Files and Directories
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
The following sub procedure retrieves all the folder names in a computer using the WMI. It writes to the immediate window, and can be extended to write to a file or UI.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: