我在批处理文件中有这一行:
Test.exe %*
我在谷歌搜索,找到了这个解释:
Some DOS versions use this sign coupled with a percent sign (%*) to represent all parameters on the command line in a batch file.
但是我还是不明白这个命令怎么用...
谢谢!
最佳答案
这用于将您传递到批处理文件的参数转发到另一个应用程序。
例如,如果您调用 batch.bat param1 param2 param3 param4
并在您的batch.bat 文件中包含 Text.exe %*
,则相当于调用Test.exe 参数1 参数2 参数3 参数4
关于batch-file - 批处理 : For what is percentage followed by asterisk used?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19913019/