Re: JScript question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



markpatricksmith@xxxxxxxxx said the following on 9/21/2006 12:12 AM:
I know this is probably a pretty basic question. I fly F-16's in the
ANG and we are trying to simplify our flying publication process.

All I want to do is take a bunch of file locations off the web (see
below) and write a script that downloads all of them and puts them in a
specified folder. We actually have about 50 of these to do. So
instead of having someone go to each page and click File Save As they
can just click one button to automate the task.

I would appreciate a code example or a link to a good website. I have
almost zero javascript knowledge. I was just tasked with this project.

Thanks,
Mark


http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF

Create a simple HTML file that has an img tag with the src set to all the files you want:

<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF";>

And so on until you have an img tag for each file.
Then, open the page in IE, click the File Menu, Save As > Complete Web Page.

IE will save the page and all the files needed to "display" the page. It will put all the child files into a separate folder for it and name the folder by the TITLE attribute of the HTML file.

Save this page locally, open it, then do a File>Save As:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd";>
<html>
<head>
<title>Flying Publications</title>
</head>
<body>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI1_35L.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI17R.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HI22.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197I17R.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197I22.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197I35L.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT4.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT17R.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT22.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197HT35L.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T4.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T17R.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T22.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197T35L.PDF";>
<img src="http://www.naco.faa.gov/d-tpp/0609/00197AD.PDF";>
</body>
</html>


--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.



Relevant Pages

  • Re: help with Photo gallery please - Follow-up Question
    ... I have found out how to build a search using the advanced search window, and how to save the search to the searches folder. ... You could however try the Group By tag or Sort By tag features in Gallery ... "Trebor chill'n" where Trebor is all the pictures of Trebor and chill'n is ... This would include any photos that you have ...
    (microsoft.public.windows.vista.general)
  • Re: help with Photo gallery please - Follow-up Question
    ... You could however try the Group By tag or Sort By tag features in Gallery ... Then save that search in your Searches folder, give it a good name like ... "Trebor chill'n" where Trebor is all the pictures of Trebor and chill'n is ... This would include any photos that you have ...
    (microsoft.public.windows.vista.general)
  • Re: Intresting behavior
    ... Go read the doc on SHFileOperation and more specifically on SHFILEOPSTRUCT. ... There is even a flag to NOT move the folder with the files. ... If file connection is enabled, when you move or copy the HTML file, ... if you move the folder with the related files, the HTML file is also moved. ...
    (microsoft.public.windows.file_system)
  • Re: My Documents>My Music query on displaying album, track, size d
    ... If you mean use my Music Library to tag the ... files with album, track no etc I've already done that in MusicMatch (which I ... they're in a folder called "Zombies. ... If I rightclick, Properties>Summary I get a page that shows all the ...
    (microsoft.public.windowsxp.music)
  • RE: Self-Executing FOLDERS: Windows XP Explorer Part V
    ... Pics.html" to "My Pics.Folder", it's still an HTML file and not a folder. ... promised to do in Service Pack 2 for Windows XP. ... Windows XP Explorer will execute it. ...
    (Bugtraq)