Batch : For what is percentage followed by asterisk used?

前端 未结 2 788
梦如初夏
梦如初夏 2021-02-04 02:42

I have in a batch file this line :

Test.exe %*

I searched in google and I found this explaination :

Some DOS versions us

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 03:26

    With that explanation, you can call an executable or other script with the exact same parameters as were passed to this script. So that allows you to easily 'wrap' an executable in a script that does some action before and/or after running the executable, while still supporting all command line parameters the executable supports.

提交回复
热议问题