且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在CMD; |(&QUOT&QUOT)与管使用时, - ;(QUOT&QUOT)什么是几许?

更新时间:2022-03-19 01:43:53

我presume你的意思是 - 是precedes的&安培; 。它无关,与管道运营商,它是PowerShell的指令。

I presume you mean the - that precedes the &. It has nothing to do with the pipe operator, it is a directive for powershell.

下面是从PowerShell帮助中摘录的 - 命令选项的说明(通过访问的PowerShell /?

Here is a description of the -Command option excerpted from powershell help (accessed by powershell /?)

-Command
    Executes the specified commands (and any parameters) as though they were
    typed at the Windows PowerShell command prompt, and then exits, unless
    NoExit is specified. The value of Command can be "-", a string. or a
    script block.

    If the value of Command is "-", the command text is read from standard
    input.

顺便说一句 - 我不知道FINDSTR接受 - 作为一个选项指标,直到我看到你的问题。我只看到和使用 / 。良好的信息就知道了。

BTW - I did not realize FINDSTR accepted - as an option indicator until I saw your question. I've only seen and used /. Good info to know.