HIRO's.NET Blog

PowerShellが好き

目次

Blog 利用状況

ニュース

あわせて読みたい

書庫

日記カテゴリ

リンク

HTTPダウンロードするには(Windows PowerShell Tips)

PowerShellでHTTPダウンロードするには、System.Net.WebClient クラスを使用します。

PS > $webClient = new-object System.Net.WebClient
PS > $webClient.DownloadFile("http://hiro.wankuma.com/index.html", "C:\Work\index.html")
上記は http://hiro.wankuma.com/index.html をダウンロードして C:\Work に index.html として保存します。

投稿日時 : 2007年12月28日 13:14

コメントを追加

# HTTPダウンロードするには(関数版)(Windows PowerShell Tips) 2007/12/28 13:32 HIRO's.NET Blog

HTTPダウンロードするには(関数版)(Windows PowerShell Tips)

タイトル
名前
URL
コメント