Windows 从 URL 下载文件的命令
Windows command to download a file from URL
我想使用来自 url 的 windows 命令下载文件。我想知道windows.
中是否有wget这样的命令
谢谢
我想你可以使用这个 PowerShell 脚本:
$client = new-object System.Net.WebClient
$client.DownloadFile(“URL of file”,“Where save”)
将文件的URL替换为URL,例如http://example.com/icon.png
其中保存在你PC的路径,比如C:\Users\User\Desktop\icon.png
例如:
$client = new-object System.Net.WebClient
$client.DownloadFile("https://example.com/data.txt","D:\FileDownloaded.txt");
(抱歉我的英语不好,谢谢)
我想使用来自 url 的 windows 命令下载文件。我想知道windows.
中是否有wget这样的命令谢谢
我想你可以使用这个 PowerShell 脚本:
$client = new-object System.Net.WebClient
$client.DownloadFile(“URL of file”,“Where save”)
将文件的URL替换为URL,例如http://example.com/icon.png
其中保存在你PC的路径,比如C:\Users\User\Desktop\icon.png
例如:
$client = new-object System.Net.WebClient
$client.DownloadFile("https://example.com/data.txt","D:\FileDownloaded.txt");
(抱歉我的英语不好,谢谢)