VBScript

From The World according to Vissie
Jump to navigation Jump to search

Run curl, download file via proxy

const DontWaitUntilFinished = false, ShowWindow = 1, DontShowWindow = 0, WaitUntilFinished = true
set oShell = WScript.CreateObject("WScript.Shell")
command = "cmd /c curl.exe -x proxy.site.com:8080 -U user:password -o C:\Data\Download\curl\file.xls https://www.site.com/file.xls"
oShell.Run command, ShowWindow, WaitUntilFinished