gpt4 book ai didi

powershell - '<' 运算符保留供将来使用

转载 作者:行者123 更新时间:2023-12-03 06:23:48 31 4
gpt4 key购买 nike

我正在使用 PowerShell 并尝试运行以下命令:

.\test_cfdp.exe < test.full | tee test.log

test.full 是一个模拟 test_cfdp.exe 命令行输入的脚本。但是,我收到以下错误:

The '<' operator is reserved for future use.

是否有其他方法(即 cmdlet)可以让此命令在 PowerShell 中运行?

最佳答案

这个was not supported in PowerShell v1 [从 v5 开始,它仍然不是...]

示例解决方法是:

Get-Content test.full | .\test_cfdp.exe | tee test.log

关于powershell - '<' 运算符保留供将来使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2148746/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com