By David Wiseman (Administrator)Created 05 Nov 2006
My Rating:
Vote
Rating:
Not Rated
Views:5763
Downloads:84

Enum Folders (Recursive)

Language:  VBScript

Compatibility

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

Enumerate folders.

Code

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
	next
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: http://deludi.nl/blog/vbscript/filesystem/folders/filesystem-vbscript-to-enumerate-the-subfolders-recursive-with-depth-limit/

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.

Duewu
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.

Athlef
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.

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

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