"Keith" <Keith@xxxxxx> wrote in message
news:CD955493-9C1A-4E35-8A9B-9B17D9E7B17C@xxxxxx
> Hello,
> I need to list all external links on a website of ours. Are there any
> snippets of VBScript that can help with this? Just something simple that
> will spider the website and drop the links it finds into a txt file.
> Along
> these same lines, what is the vbscript used for spidering a domain name?
> Any
> help would be greatly appreciated.
>
> Thanks. I don't know of any such code snippet.
Maybe this will help you to design your own spider.
If you wanted to get a list of all files in a folder and all of its
subfolders, you could use the filesystem object and its folder.files and
folder.subfolders collections to recursively dig your way down through an
initial folder and all its subfolders.
You can use the internetexplorer.application object and its links and images
collections in a manner similar manner to recursively dig your way through
an initial web page and all URLs linked on this initial and subsequent web
pages.
http://msdn.microsoft.com/en-us/library/ms533050.aspx will help you
understand the IE application object model.
Use google.groups.com, specifying the group
microsoft.public.scripting.vbscript, to search for IE related code snippets.
-Paul Randall