6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WindowsのコマンドプロンプトからWeb上のファイルをダウンロードする

Posted at

はじめに

諸々の事情によりWindowsのコマンドプロンプトからファイルをDLする事になった。
Linuxならcurlで行けるけどWindowsではどうしたものか。

やりかた

bitsadminというコマンドが標準で用意されていた。

bitsadmin /TRANSFER [ジョブ名] [URL] [保存先フルパス]

例:

bitsadmin /TRANSFER FILEGET http://hoge.com/fuga/file.xml c:\tmp\download.xml

ジョブ名は識別用なので任意の名称で大丈夫。
httpにしか対応していないようだが標準装備なので手軽に使える。
ただ、名前がなんとなく覚えにくい。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?