HOW TO download a list of files with a PowerShell script

If you use Windows Vista or higher, PowerShell comes along with it. So if you have to download a list of files, you can do that easily with this PowerShell script instead of installing any other tools (command-line or GUI)


To get a single file, you can use just this line of code:
(new-object System.Net.WebClient).DownloadFile('http://www.xyz.net/file.txt', 'C:\tmp\file.tx‌​t')
You can also use the PowerShell Invoke-WebRequest cmdlet:

Comments

Popular posts from this blog

2 ways to copy tooltip text from a web page

This Week I Learned - Week 27 2026

HOW TO link directly to a specific word on a webpage with Scroll to Text Fragment feature