使用PowerShell下载http文件
Windows 7和Windows 2008操作系统可以在PowerShell中通过调用bitstransfer模块下载http、FTP等文件,从而实现使用命令进行文件下载。
使用示例:
Import-Module BitsTransfer $url = 'http://dldir1.qq.com/qqfile/qq/QQ5.3/10702/QQ5.3.exe' Start-BitsTransfer $url D:\QQ5.3.exe Invoke-Item D:\QQ5.3.exe
『—ENDOF—』