| Login

Search this Blog


Links I like to keep around




Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Nov22

Written by:R Teachout
11/22/2006 4:43 PM

VBScript: Traverse Directories & Subdirectories Snippet

>> This snippet will come in handy quite a few times…

Call ListFolderContents("C:\Windows\System32\Drivers")
 
Sub ListFolderContents(path)
     set fs = CreateObject("Scripting.FileSystemObject")
     set folder = fs.GetFolder(path)
         Msgbox folder.path
    
         For each item in folder.SubFolders
                  ListFolderContents(item.Path)
         Next
End Sub

Tags:

What we're really after is simply that people acquire a legal license for Windows for each computer they own before they move on to Linux or Sun Solaris or BSD or OS/2 or whatever.
-Bill Gates

Inspired by Nina