使用 PowerShell 下载 Notepad++
Download Notepad++ with PowerShell
我想使用 PowerShell 下载 7zip 文件,例如 Notepad++
我试过了
"Invoke-WebRequest https://github.com/notepad-plus-plus/notepad-plus-plsu/releases/download/v8.1.4/npp8.1.4.portable.7zip -OutFile package.zip"
我收到以下错误消息
Invoke-WebRequest : Die Anfrage wurde abgebrochen: Die Verbindung wurde unerwartet getrennt..
In Zeile:1 Zeichen:1
+ Invoke-WebRequest https://github.com/notepad-plus-plus/notepad-plus-p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
我做错了什么?
你没有做错什么。这是一个很好的命令,它可以与另一个 link.
一起使用
你linkhttps://github.com/notepad-plus-plus/notepad-plus-plsu/releases/download/v8.1.4/npp8.1.4.portable.7zip
return404错误,无法下载
如果你想确定,你可以试试这个link:https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.1.4/npp.8.1.4.portable.7z
因此,运行 这个命令:
Invoke-WebRequest https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.1.4/npp.8.1.4.portable.7z -OutFile package.zip
效果很好。
(警告:我使用找到的第一个文件,所以它可能不是您想要的扩展名)
我想使用 PowerShell 下载 7zip 文件,例如 Notepad++ 我试过了
"Invoke-WebRequest https://github.com/notepad-plus-plus/notepad-plus-plsu/releases/download/v8.1.4/npp8.1.4.portable.7zip -OutFile package.zip"
我收到以下错误消息
Invoke-WebRequest : Die Anfrage wurde abgebrochen: Die Verbindung wurde unerwartet getrennt..
In Zeile:1 Zeichen:1
+ Invoke-WebRequest https://github.com/notepad-plus-plus/notepad-plus-p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
我做错了什么?
你没有做错什么。这是一个很好的命令,它可以与另一个 link.
一起使用你linkhttps://github.com/notepad-plus-plus/notepad-plus-plsu/releases/download/v8.1.4/npp8.1.4.portable.7zip
return404错误,无法下载
如果你想确定,你可以试试这个link:https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.1.4/npp.8.1.4.portable.7z
因此,运行 这个命令:
Invoke-WebRequest https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.1.4/npp.8.1.4.portable.7z -OutFile package.zip
效果很好。
(警告:我使用找到的第一个文件,所以它可能不是您想要的扩展名)