%*在批处理文件中是什么意思? [英] 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屋!
查看全文