|
J-man -> RE: urllist.txt - yahoo (12/6/2005 14:42:57)
|
Strange when i copied an pasted from note pad the spacing got messed up, this is better and i modified it to produce more of what we may be looking for: You can put the file anywhere as long as the GetFolder path is direct at the folder you want a list of. <% dim fs,fo,x set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("d:\webs\site\folder\folder") ' //use Server.MapPath above to resolve physical path to folder you wish to get a list from for each x in fo.files 'Print the name of all files in the folder with the http://www.company.com/ Response.write("http://www.company.com/maybeAnotherFolderHere/" & x.Name & "<br />") next set fo=nothing set fs=nothing %> Question: i use some Flash applications on my site and I was wondering if it matters if i try to get the Y! bots to crawl .swf files - actually i'm not sure how swf files are indexed; independetly or if they are even indexed? Should i strip them out of the list or keep them in? Thanks BTW - maybe we can have a group effort to take this script to the next level? have a button that creates a txt file with the data, plus the option in the asp code to comment or uncomment certain file format extensions so the results don't or can be included - things like PDF, SWF, images, ets... And have the script beable to display the urls of any folder we ask it to. Any thoughts on this?
|
|
|
|