Have a text file of URLs. How do I download them all automatically? Thank you :-)
MSFTFreeEbooks.txt
###### Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x

Commented:
literally this was one comment on that page:

1) Save the list of the book locations provided by Eric Ligman (many thanks Eric!) in a file (default msftebooks.txt) by right clicking the icon he provided in the article and use the 'Save' dialog.

2) Download (the free) Wget.exe v1.11.4 (google it) [Warning: Later versions are not compiled correctly for Windows].

3) Place both files in same directory (it was happy with general Download folder but you might prefer them to be in a New Folder e.g. Microsoft eBooks; the downloaded files will also be in that directory folder).

4) Open Command Prompt and use 'cd' command (without the quote marks) to move the prompt to the location of the files.

5) Type wget -i mstfebooks.txt
0

L2 support engineerCommented:
you can use batch for the same.

download the attached txt file and rename it with .bat extension and run. i hope it will work for you.
0

Author Commented:
Rename my file MSFTFreeEbooks.txt to MSFTFreeEbooks.bat and then run it? Because if you have attached a file - can't see it :-0. Thanks though
0

IT ProCommented:
Hi. Here is you script:

Use poweshell ISE. Paste the code and edit the path's:

Get-Content "c:\it\powershell\urls.txt" | Foreach {
Start-Job {
function Save-TinyUrlFile
{
PARAM (
$TinyUrl,$DestinationFolder
)

$response = Invoke-WebRequest -Uri$TinyUrl
$filename = [System.IO.Path]::GetFileName($response.BaseResponse.ResponseUri.OriginalString)
$filepath = [System.IO.Path]::Combine($DestinationFolder, $filename) try {$filestream = [System.IO.File]::Create($filepath)$response.RawContentStream.WriteTo($filestream)$filestream.Close()
}
finally
{
if ($filestream) {$filestream.Dispose();
}
}
}

Save-TinyUrlFile -TinyUrl $args[0] -DestinationFolder$args[1]
} -ArgumentList \$_, "c:\t"
}

0

L2 support engineerCommented:
sorry , here is the file. rename it with .bat extension.

or if you have IDM then you can make batch file for the same . like
0

Commented:
LOL go back to the page got that where you got that text file...scroll down through comments...there's a bunch of scripts you can copy and paste powershell or bash or if you really need to download a gui based application, flashget , downthemall , there's also a load of chrome extensions that will do it ... but really, if you had read that page all the way to the bottom, you would have answered this yourself...
0

Commented:
If you're going to cut and paste instructions from the site, you should also quote the content and provide the link. https://blogs.msdn.microsoft.com/mssmallbiz/2016/07/10/how-to-download-all-of-the-free-ebooks-and-resources-in-my-free-ebooks-giveaway/
0

Commented:
I did that. the page I copied and pasted from was the same page that the poster obtained the text file from.
0

Commented:
I meant to post it for everyone else, so they don't have to search for it.
0

Author Commented:
Thanks to all of you but what I ended up doing was getting someone on Fiverr to do it. :-) Much appreciated though.
0

Author Commented:
Got lots of help and suggestions but ended up outsourcing it :-)
0