CMD command to download remote files

For Certificate Management

Support environment: XP - 10 System-wide Windows

More: https://technet.microsoft.com/zh-cn/library/cc755341(v=ws.10).aspx

downloader

(1) saved in the current path, file name with the URL

eg:

certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt

(2) stored in the current directory, specify the file name to save

eg:

certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt file.txt

(3) stored in the cache directory, random name

Cache directory location:% USERPROFILE% \ AppData \ LocalLow \ Microsoft \ CryptnetUrlCache \ Content

eg:

certutil.exe -urlcache -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt

(4) support to save binary files

eg:

certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/msg.dll

Note:

Use downloader default cache directory location:% USERPROFILE% copy \ AppData \ LocalLow \ Microsoft \ CryptnetUrlCache \ Content to save the downloaded file

Clear download file copy method:

Method 1: delete the cache directory corresponding to the file

As shown below

Method 2: Command Line:

certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/msg.dll delete

supplement:

View cached items:

certutil.exe -urlcache *

Guess you like

Origin www.cnblogs.com/LyShark/p/10994300.html