gpt4 book ai didi

batch-file - 批处理 : For what is percentage followed by asterisk used?

转载 作者:行者123 更新时间:2023-12-02 17:35:51 24 4
gpt4 key购买 nike

我在批处理文件中有这一行:

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com