%* 在批处理文件中是什么意思? [英] What does %* mean in a batch file?
本文介绍了%* 在批处理文件中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在批处理文件和命令行中看到了%*
的用法.
I have seen the usage of %*
in batch files and command lines.
谁能用例子解释一下%*
的典型用法?
Can someone explain the typical usage of %*
with an example?
推荐答案
意思是命令行中的所有参数".
It means "all the parameters in the command line".
例如,当您想将命令行从批处理文件转发到另一个程序时,它很有用:
For example, it's useful when you want to forward the command line from your batch file to another program:
REM mybatchfile.cmd
echo You called this with arguments: %*
echo I will now forward these to the DIR command.
dir %*
这篇关于%* 在批处理文件中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文