07-23-2023, 09:38 AM
CURL
----
With the build 17063 of windows 10 the CURL utility was added. To download a file you can use:
curl "https://download.sysinternals.com/files/PSTools.zip" --output pstools.zip
BITSADMIN
---------
It can be easier to use bitsadmin with a macro:
set "download=bitsadmin /transfer myDownloadJob /download /priority normal"
%download% "https://download.sysinternals.com/files/PSTools.zip" %cd%\pstools.zip
Winhttp com objects
-------------------
For backward compatibility you can use [winhttpjs.bat][1] (with this you can perform also POST,DELETE and the others http methods):
call winhhtpjs.bat "https://example.com/files/some.zip" -saveTo "c:\somezip.zip"
[1]:
----
With the build 17063 of windows 10 the CURL utility was added. To download a file you can use:
curl "https://download.sysinternals.com/files/PSTools.zip" --output pstools.zip
BITSADMIN
---------
It can be easier to use bitsadmin with a macro:
set "download=bitsadmin /transfer myDownloadJob /download /priority normal"
%download% "https://download.sysinternals.com/files/PSTools.zip" %cd%\pstools.zip
Winhttp com objects
-------------------
For backward compatibility you can use [winhttpjs.bat][1] (with this you can perform also POST,DELETE and the others http methods):
call winhhtpjs.bat "https://example.com/files/some.zip" -saveTo "c:\somezip.zip"
[1]:
[To see links please register here]