インターネットからダウンロードする

インターネットからダウンロードするサンプルコマンドです。

バッチ

サンプル:

bitsadmin.exe /TRANSFER job001 http://10.x.x.x/ c:\temp\result.html


Powershell

サンプル:

(new-object System.Net.WebClient).Downloadfile("http://10.x.x.x/", "c:\temp\result.html")



サンプル:

Invoke-WebRequest -Uri "http://10.x.x.x/" -OutFile "c:\temp\result.html"

(*)alias は wget



cygwin

cygwinとはWindows環境で Unix ライクなコマンドを使用するフリーソフトです。

cygwin をダウンロードする

サンプル:

c:\cygwin\bin\curl.exe http://x.x.x.x



コマンドサンプル一覧