小编p4t*_*tux的帖子

curl http://url/script.ps1 | powershell可能吗?

我只想复制我在Linux系统上执行的相同操作

c:\> \{CURL_EQUIVALENT_ON_WINDOWS} - http://url/script | powershell 
Run Code Online (Sandbox Code Playgroud)

那可能吗?

基本上我想执行从服务器下载的流.

IE:步骤:

1)了解如何在PowerShell中执行流.执行一个流(我已在文件系统上拥有)

c:\> type script.ps1 | powershell -command - 
Run Code Online (Sandbox Code Playgroud)

但这不起作用.

有一个选项-File来执行"文件",基本上我想尽可能执行流.

2)了解如何执行我从服务器下载并将其传输到PowerShell的流.

powershell curl stream

6
推荐指数
2
解决办法
3621
查看次数

标签 统计

curl ×1

powershell ×1

stream ×1