June 2018
Intermediate to advanced
294 pages
7h 5m
English
For older versions of Windows with no PowerShell, we will use VBScript. The first step is to create the script. Then, we can execute it using the cscript command:
echo strUrl = WScript.Arguments.Item(0) > wget_win.vbsecho StrFile = WScript.Arguments.Item(1) >> wget_win.vbsecho Const HTTPREQUEST_PROXYSETTING_DEFAULT = 0 >> wget_win.vbsecho Const HTTPREQUEST_PROXYSETTING_PRECONFIG = 0 >> wget_win.vbsecho Const HTTPREQUEST_PROXYSETTING_DIRECT = 1 >> wget_win.vbsecho Const HTTPREQUEST_PROXYSETTING_PROXY = 2 >> wget_win.vbsecho Dim http, varByteArray, strData, strBuffer, lngCounter, fs, ts >> wget_win.vbsecho Err.Clear >> wget_win.vbsecho Set http = Nothing >> wget_win.vbsecho Set http = CreateObject("WinHttp.WinHttpRequest.5.1") ...Read now
Unlock full access