By David Wiseman (Administrator)Created 05 Nov 2006
My Rating:
Not Rated

Enum Folders (Recursive)

Language:  VBScript


Windows XP Yes Windows 2003 Yes
Windows 2000 Yes Windows NT Unknown
Vista Unknown Windows 2008 Unknown

Enumerate folders.


Line Numbers: On  Off      Plain Text
strFolder = "C:\test"

set objFSO = createobject("Scripting.FileSystemObject")

GetFolders strFolder

sub GetFolders(byval strDirectory)
	set objFolder = objFSO.GetFolder(strDirectory)	
	for each objFolder in objFolder.SubFolders
		wscript.echo objFolder.Path
		GetFolders objFolder.Path
end sub


Got a useful script? Click here to upload!


  Post Comment
Order By:  
User Comments
dirk adamsky
Posted On: 3/5/2010 3:51:51 AM

Hi David, good script. I have made a recursive subfolders script with depth control. It can be found here:

Lauren Knowles
Posted On: 5/4/2019 7:14:23 AM [Edited 5/4/2019 7:15:12 AM]

Enum Folders has become the source of high-speed information transfer but its drawbacks are stopping En Iyi Yabanci Bahis Siteleri in becoming more popular. You cannot get immediate feedback in the online education and you may also face the internet problems.

Posted On: 5/20/2019 10:11:55 AM

Vbscript recursive folders we all have to write my essay for me in soft copy. That everything is needed to issue best wise soft articles and essay resources. So, we will understood much about all these scripts.

Posted On: 10/11/2019 6:30:11 AM

I have listed so many scripts for the windows software developer. They all wants to gain full information about CB Systems company. They are doing a lot of services to develop their business.

Posted On: 12/12/2019 9:46:14 AM

Retrieves information about domains discovered on the network. fun online run 3 running game

Posted On: 12/23/2019 4:29:17 AM

Your share is the great knowledge I have gathered, you are an important person I admire, thank you temple run

Posted On: 4/9/2020 1:08:31 PM

Oh, I always had troubles with folders. Can someone explain it to me? Otherwise, I will have to ask some writing service to write my assignment for me cause when idk how to write an assignment I always use these websites. You can write me PM if u know what to do, thanks.

Posted On: 5/18/2020 1:16:04 PM

Thank you very much for the information you provide, this information may be useful to those who need it. basketball legends