Login | Register
Find Code
 

Close

 
  • Submit Code
  • ASP, HTML and XML
  • Database
  • Dates and Math
  • Files and Directories
  • Forms and Controls
  • Lists, Collections and Arrays
  • Miscellaneous
  • Multimedia / Games
  • Network / Internet
  • Office/VBA
  • Registry
  • Screen / Graphics
  • String Manipulation
  • System API
  • VB.NET / ASP.NET
  • Windows 2000/XP
 

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:
Sponsored Links: