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

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)