WIN下的CMD下载命令

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

 

 

 

posted on 2017-12-24 22:00  Perl6  阅读(685)  评论(0编辑  收藏  举报

导航