PowerShell: Download Webpage, curl, wget

By Xah Lee. Date: . Last updated: .

Here's how to download a webpage.

# get a website content, save it as xx.html
iwr "google.com" -outfile xx.html

Windows 10 has curl builtin, at C:/Windows/system32/curl.exe

curl -h for help.

# download a html page
curl -O http://example.org/xyz/cat.html
# download all jpg files named cat01.jpg to cat20.jpg
curl -O http://example.org/xyz/cat[01-20].jpg
# download all jpg files named cat1.jpg to cat20.jpg
curl -O http://example.org/xyz/cat[1-20].jpg

PowerShell zip tar

PowerShell

Practical How-To

list files

list dirs

on dir

on file

Windows config

zip tar

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples