くんすとの備忘録

IT系技術メモ

移転しました。

15秒後に自動的にリダイレクトします。

IEを使用せずにFireFoxをダウンロードする方法

VBScriptを使えばできまする。


donwload_firefox.vbs

Set Http = Wscript.CreateObject("Msxml2.ServerXMLHTTP")
Http.Open "GET", "https://download-installer.cdn.mozilla.net/pub/firefox/releases/29.0/win32/ja/Firefox%20Setup%20Stub%2029.0.exe", False
Http.Send

Set Stream = Wscript.CreateObject("ADODB.Stream")
Stream.Open
Stream.Type = 1
Stream.Write Http.responseBody
Stream.SaveToFile "Firefox Setup Stub 29.0.exe", 2
Stream.Close

msgbox "完了"

※エラー処理とか全然してないのでプロダクトの参考にしてはいけない。