批次:百分号后跟星号的百分比是多少? [英] Batch : For what is percentage followed by asterisk used?

查看:147
本文介绍了批次:百分号后跟星号的百分比是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have in a batch file this line :

Test.exe %*

我在Google中进行搜索,发现了这种解释:

I searched in google and I found this explaination :

某些DOS版本使用此符号和百分号(%*)来表示批处理文件中命令行上的所有参数.

Some DOS versions use this sign coupled with a percent sign (%*) to represent all parameters on the command line in a batch file.

但是我仍然不知道如何使用此命令...

But I still don't understand how to use this command...

谢谢!

推荐答案

这用于将您传入批处理文件的参数转发到另一个应用程序.

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

例如,如果您调用batch.bat param1 param2 param3 param4,并且在batch.bat文件中拥有Text.exe %*,则等效于调用Test.exe param1 param2 param3 param4

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

这篇关于批次:百分号后跟星号的百分比是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆