Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Enumerate Subfolders Using RecursionContent of Enumerate Subfolders Using Recursion.vbsMD5 Hash: 2C46B92C417C382EE229493223658EA7 |
||
' Description: Demonstration script that uses the FileSystemObject to recursively list all the subfolders (and their subfolders) within a folder. Script must be run on the local computer.
Set FSO = CreateObject("Scripting.FileSystemObject") ShowSubfolders FSO.GetFolder("C:\Scripts") Sub ShowSubFolders(Folder) For Each Subfolder in Folder.SubFolders Wscript.Echo Subfolder.Path ShowSubFolders Subfolder Next End Sub | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |