Batch : For what is percentage followed by asterisk used?

前端 未结 2 834
梦如初夏
梦如初夏 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:20

    This is used to forward the parameters you passed in to the batch file to another application.

    For example if you call batch.bat param1 param2 param3 param4 and inside your batch.bat file you have Text.exe %*, it will be equivalent as calling Test.exe param1 param2 param3 param4

提交回复
热议问题