如何将命令行输入批量写入命令?

How to write the command line input into the command in batch?

我要运行命令

ex.exe property

其中 'property' 是我首先从命令行输入的文本。这样的批处理脚本怎么写?

如果我没理解错的话,您需要一个输入变量值的提示。尝试类似的东西:

set /p property=Enter Property:
ex.exe %property%

您想要的是命令行参数 - 例如第一个

ex.exe %1

有关详细信息,请参阅 here