windows--powerShell
2019-05-26 本文已影响0人
非鱼2018
1.打开powershell,命令行执行powershell
2.下载网络文件
在命令行窗口执行
$client = new-object System.Net.WebClient (回车)
$client.DownloadFile('http://www.com','D:\index.html')(回车)
如图:下载html文件到本地
![](https://img.haomeiwen.com/i9921948/b85301b87c9153e6.png)
![](https://img.haomeiwen.com/i9921948/264e468ecdbd0686.png)
![](https://img.haomeiwen.com/i9921948/c058aea2ad5e148d.png)
1.打开powershell,命令行执行powershell
2.下载网络文件
在命令行窗口执行
$client = new-object System.Net.WebClient (回车)
$client.DownloadFile('http://www.com','D:\index.html')(回车)
如图:下载html文件到本地