如何使用" ^ | ^ | ^ |"在powershell?

时间:2016-07-31 19:35:25

标签: windows powershell cmd

我有以下命令来调用:

ConEmu64.exe -runlist cmd -new_console:a ^|^|^| cmd.exe /k dir ^|^|^| cmd -new_console

使用 cmd 时效果非常好,但在使用 powershell 时,我得到了这个:

^ : The term '^' is not recognized as the name of a cmdlet, function, script fi
le, or operable program. Check the spelling of the name, or if a path was inclu
ded, verify that the path is correct and try again.
At line:1 char:74
+ ... onEmuPack.160707\ConEmu64.exe -runlist cmd -new_console:a ^|^|^| cmd. ...
+                                                                 ~
    + CategoryInfo          : ObjectNotFound: (^:String) [], CommandNotFoundEx 
   ception
    + FullyQualifiedErrorId : CommandNotFoundException

我通过运行来绕过它:

cmd.exe /k "ConEmu64.exe -runlist cmd -new_console:a ^|^|^| cmd.exe /k dir ^|^|^| cmd -new_console"

但是有可能在PowerShell中本地调用它吗?

0 个答案:

没有答案