What does %* mean in a batch file?

前端 未结 4 1225
南方客
南方客 2021-02-02 08:14

I have seen the usage of %* in batch files and command lines.

Can someone explain the typical usage of %* with an example?

4条回答
  •  遥遥无期
    2021-02-02 08:57

    The %* modifier is a unique modifier that represents all arguments passed in a batch file. You cannot use this modifier in combination with the %~ modifier. The %~ syntax must be terminated by a valid argument value.

    Source:

    • "Using batch parameters" on Microsoft.com (defunct)
    • "Using batch parameters" (Archive.org mirror)

提交回复
热议问题