Batch file 如何在运行bat文件期间在windows命令行上传递参数

Batch file 如何在运行bat文件期间在windows命令行上传递参数,batch-file,jasperserver,Batch File,Jasperserver,我试图运行一个bat文件来安装JasperReports服务器,样本数据, 和样本数据库。 命令是 D:\Software\Jasper\u CE\u set\u and\u war\jasperreports-server-cp-6.0.1-bin\buildomatic>js install CE.bat 然后我得到的错误是 争论太多 Please enter one of the following options: 'EMPTY', minimal, regen-config, drop

我试图运行一个bat文件来安装JasperReports服务器,样本数据, 和样本数据库。 命令是

D:\Software\Jasper\u CE\u set\u and\u war\jasperreports-server-cp-6.0.1-bin\buildomatic>js install CE.bat

然后我得到的错误是

争论太多

Please enter one of the following options: 'EMPTY', minimal, regen-config, drop-db, test
Invalid option specified
Please enter one of the following options: 'EMPTY', minimal, regen-config, drop-db, test
但是当我传递一个给定的参数时,它给了我同样的错误

D:\Software\Jasper_CE_set_and_war\jasperreports-server-cp-6.0.1-bin\buildomatic>js-instal
st
Invalid option specified
Please enter one of the following options: 'EMPTY', minimal, regen-config, drop-db, test

bat文件的内容

@ECHO OFF

rem ///
rem /// JasperReports Server CE installation script.
rem ///
rem /// Usage: js-install-ce.bat {option:(<EMPTY>|minimal|drop-db|regen-config|test)}
rem ///

CALL "bin/do-js-install.bat" ce %%**
@ECHO关闭
雷姆///
rem///JasperReports服务器CE安装脚本。
雷姆///
rem///用法:js-install-ce.bat{option:(| minimal | drop db | regen config | test)}
雷姆///
调用“bin/do js install.bat”ce%%**
仅用 调用“bin/do js install.bat”ce%%** 但结果仍然是一样的。
有什么不对劲的线索吗

尝试向.bat文件添加参数,例如
minimal
。我想错误信息是不正确的。如果无法修复,您能否发布或链接到.bat文件的内容?请尝试使用参数。安装脚本中似乎有一个but。@Jean Françoisfare我用set arg=minimal CALL“bin/do js install.bat”ce arg%%**尝试过,但没有用。@Nand do-js-install.bat的代码是什么?如果您不显示代码,我只能猜测发生了什么。请至少发布实际代码的相关部分。这不是他的代码,而是软件批处理文件。我同意
%%**
是错误的。但另一方面,应该找到
FIND
,因为它是标准的类似grep的windows命令。此软件的批处理文件存在严重问题。请尝试向.bat文件添加参数,例如
minimal
。我想错误信息是不正确的。如果无法修复,您能否发布或链接到.bat文件的内容?请尝试使用参数。安装脚本中似乎有一个but。@Jean Françoisfare我用set arg=minimal CALL“bin/do js install.bat”ce arg%%**尝试过,但没有用。@Nand do-js-install.bat的代码是什么?如果您不显示代码,我只能猜测发生了什么。请至少发布实际代码的相关部分。这不是他的代码,而是软件批处理文件。我同意
%%**
是错误的。但另一方面,应该找到
FIND
,因为它是标准的类似grep的windows命令。此软件的批处理文件存在严重问题。