1、打开PowerShell
搜索栏输入:powershell
2、依次输入
$client = new-object System.Net.WebClient
$client.DownloadFile('https://labfile.oss.aliyuncs.com/courses/812/chapter6.tar.gz','D:\sources\chapter6.tar.gz')
注:一个参为下载地址,第二个参为存储路径及文件名
本文介绍如何通过PowerShell命令行工具下载网络上的文件,并指定本地存储路径。具体步骤包括打开PowerShell,使用 WebClient 对象的 DownloadFile 方法进行文件下载。
搜索栏输入:powershell
$client = new-object System.Net.WebClient
$client.DownloadFile('https://labfile.oss.aliyuncs.com/courses/812/chapter6.tar.gz','D:\sources\chapter6.tar.gz')
注:一个参为下载地址,第二个参为存储路径及文件名
1278
7453
1万+

被折叠的 条评论
为什么被折叠?