您现在的位置是:网站首页> 编程资料编程资料
Powershell小技巧之轻松从网上下载文件_PowerShell_
2023-05-26
391人已围观
简介 Powershell小技巧之轻松从网上下载文件_PowerShell_
支持所有PS版本
在PS中可以轻松的从网上下载文件。这里有一段代码下载PS说明书(这是一个珍贵并丰富的Powershell文档)自动到你的电脑。
复制代码 代码如下:
$link = 'http://download.microsoft.com/download/3/2/6/326DF7A1-EE5B-491B-9130-F9AA9C23C29A/PowerShell%202%200%20Language%20Specification.docx'
$outfile = "$env:temp\languageref.docx"
Invoke-WebRequest -Uri $link -OutFile $outfile
Invoke-Item -Path $outfile
您可能感兴趣的文章:
相关内容
- Powershell小技巧之等待输入一个按键_PowerShell_
- Powershell小技巧之使用Update-TypeData扩展类型系统_PowerShell_
- Powershell小技巧之找出脚本中的错误_PowerShell_
- Windows Powershell对象转换成文本_PowerShell_
- Windows Powershell使用管道_PowerShell_
- Windows Powershell使用哈希表_PowerShell_
- Windows Powershell强类型数组_PowerShell_
- Powershell小技巧之获取当前的时间并转换为时辰_PowerShell_
- Powershell小技巧之判断是否包涵大小写_PowerShell_
- PowerShell小技巧之调用CloudFlare的SDK查询网站统计信息_PowerShell_
