| Number | Category | Recipe |
"
set objFSO = createobject("Scripting.FileSystemObject")
set objFile = objFSO.GetFile(strPhysicalPath)
set objFolder = objFile.ParentFolder
set objSubFolders = objFolder.SubFolders
for each objFolderItem in objSubFolders
strFolderName = objFolderItem.name
if strFolderName <> "_vti_cnf" then
set objFolderContents = objFolderItem.Files
'if InStr(strFolderName,strSearch)>0 then
if InStr(strFolderName,strSearch)>0 then
for each objFileItem in objFolderContents
strFileName = objFileItem.name
if Right(strFileName,3)="htm" then
'set objFileTextStream = objFileItem.OpenAsTextStream(1, -2)
'strText = objFileTextStream.ReadAll
x = x + 1
strList = strList & "| " & x & ": | " & strFolderName & " | " & Left(strFileName,len(strFileName)-4) & " |
"
'objFileTextStream.Close
end if
next
else
for each objFileItem in objFolderContents
strFileName = objFileItem.name
if Right(strFileName,3)="htm" then
set objFileTextStream = objFileItem.OpenAsTextStream(1, -2)
strText = objFileTextStream.ReadAll
if InStr(strText,strSearch)>0 then
x = x + 1
strList = strList & "| " & x & ": | " & strFolderName & " | " & Left(strFileName,len(strFileName)-4) & " |
"
end if
objFileTextStream.Close
end if
next
end if
end if
next
if x = 0 then
Response.Write "No recipes have been found.
"
elseif x = 1 then
Response.Write "The following 1 recipe has been found:
"
Response.Write strList
else
Response.Write "The following " & x & " recipes have been found:
"
Response.Write strList
end if
end if
%>