View Full Version : searching a site

01-31-2003, 01:50 PM
does anyone have a reference to a way where you could put a link into a field and hit return and it then checks the site the link is from and returns all the images that are in the directory that the link is in for example

on the output page you would have something like


Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")
StrConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("Number.mdb")

Set RS = Conn.Execute("select * from Number")

do until RS.EOF

response.write "<img src=http://webpage/imagefolder/" & RS.fields("NumberID") & ".jpg><BR>"


Above works but you have to have a database file that has the field NumberID full of numbers from 1 to 10000 that way it checks and returns all possible images but its a really bad bucherd way to my opinion!

What this would acomplish would be a Quick way to view all images on a website on one page (Only people with broadband would even bother to try) :)


P.s. what needs to change is remove the database and use maybe a auto number genirator just not sure how and then maybe an if then statement that goes something like this if image of number x exsist post image if image of number x doesnt exsist

any thoughts!


01-31-2003, 03:09 PM
you need the FileSystemObject

you somehow missed this sticky thread:

02-06-2003, 11:53 AM
Ok I dont think you got what I was trying to achive!

The sticky for directory browsing works if you have access to the server settings and or the site is fully open!

I have an on going debate with a friend of mine that there is a way of listing the entire directory of a website with subfolders ext... of say for example www.google.com since directory searching for that directory would not be allowed by default I figured that there would be a way of doing so with asp? One good use for this would be when you goto a webpage that has a lot of pictures or text files (like jokes) or a lot of other files and you want to be able to say view all the photos of the site or text links of the site without having to navigate the site! she doesnt think there is! :) and I just wanted to prove her wrong but maybe I am wrong but I have faith in asp lol the script I posted works if you have an idea of where the pictures are but you know that you wont get all of them!


Just a thought

02-06-2003, 12:55 PM
I think I get what you mean. I'm not sure it can be done with ASP though.

I can do it in PYTHON, I guess that's why google use it, I mean if I can do that just imagine what someone who knew what they were doing could do :)