WIN下的CMD下载命令

时间:2023-03-08 20:23:58
certutil -urlcache -split -f  远程地址 本地保存的文件跑径与文 件名
# 如里不写本地文 件名与路径名, 会自动跟远程文 件名相同, 并保存到当前目 录下

另一个是:

bitsadmin /rawreturn /transfer getfile http://download.sysinternals.com/files/PSTools.zip c:\p.zip
bitsadmin /rawreturn /transfer getpayload http://download.sysinternals.com/files/PSTools.zip c:\p.zip
bitsadmin /transfer myDownLoadJob /download /priority normal "http://download.sysinternals.com/files/PSTools.zip" "c:\p.zip"

如果是powershell, 听说可以这样:

powershell (new-object System.Net.WebClient).DownloadFile('http://down.360safe.com/360/inst.exe','d:\\test\\360.exe')
#如果不行, 把上面语句保存为powershell脚本, 用如下语句运行:
#PowerShell.exe -ExecutionPolicy Bypass -File .\runme.ps1