CMD命令下载远程文件
用于證書管理
支持環境: XP - Windows 10 全系統
更多:https://technet.microsoft.com/zh-cn/library/cc755341(v=ws.10).aspx
downloader
(1) 保存在當前路徑,文件名稱同URL
eg:
certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt
(2) 保存在當前路徑,指定保存文件名稱
eg:
certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt file.txt
(3) 保存在緩存目錄,名稱隨機
緩存目錄位置: %USERPROFILE%\AppData\LocalLow\Microsoft\CryptnetUrlCache\Content
eg:
certutil.exe -urlcache -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt
(4) 支持保存二進制文件
eg:
certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/msg.dll
注:
使用downloader默認在緩存目錄位置: %USERPROFILE%\AppData\LocalLow\Microsoft\CryptnetUrlCache\Content保存下載的文件副本
清除下載文件副本方法:
方法1: 直接刪除緩存目錄對應文件
如下圖
方法2: 命令行:
certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/msg.dll delete
補充:
查看緩存項目:
certutil.exe -urlcache *
轉載于:https://www.cnblogs.com/LyShark/p/10994300.html
總結
以上是生活随笔為你收集整理的CMD命令下载远程文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 心跳丢失造成RAC节点驱逐
- 下一篇: OC 十进制 二进制 转换