What does %* mean in a batch file?

前端 未结 4 1221
南方客
南方客 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

    %* expands to the complete list of arguments passed to the script.

    You typically use it when you want to call some other program or script and pass the same arguments that were passed to your script.

提交回复
热议问题