<%
Function Bianli (PATH)
SET FSO = Server.createObject ("scripting.filesystemObject") p>
on Error ResMe Next
Set objfolder = fso.getfolder (path) p>
set objsubfolders = objfolder.subfolders p>
for each objsubfolder in objsubfolders p>
nowpath = path "/" Objsubfolder .name p>
response.write nowpath p>
set objfiles = objsubfolder.files p>
for Each Objfile in Objfiles
Response.write "
---"
Response.write objfile.name
NEXT
Response.write "
"
Bianli (nowPath) 'Recursive P>
Next
Set objfolder = Nothing
Set objsubfolders = Nothing
SET FSO = Nothing
END FUNCTION
%>
<%
Bianli ("D:") 'Traversing D: Disc
%>