Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

ASP SubFolders Collection


❮ Complete Folder Object Reference

The SubFolders collection returns a collection of all subfolders in a specified folder.

Syntax

FolderObject.SubFolders

Example

<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")

for each x in fo.SubFolders
  'Print the name of all subfolders in the test folder
  Response.write(x.Name & "<br>")
next

set fo=nothing
set fs=nothing
%>

Output:

html
css
asp
vbscript

❮ Complete Folder Object Reference