Batch file 如何在bat文件中运行这些sh命令集?
我需要运行这个命令。首先,命令将是这个命令Batch file 如何在bat文件中运行这些sh命令集?,batch-file,sh,Batch File,Sh,我需要运行这个命令。首先,命令将是这个命令 keytool -importcert -file myfile.cer -keystore keystore.jks -alias "Aliasname" Enter keystore password: Re-enter new password: Trust this certificate? [no]: 我需要在第一个命令成功时自动运行此命令。它要求输入密码。我需要自动输入它。最后是的。 如何使用.bat文件执行此操作?如果keytoo
keytool -importcert -file myfile.cer -keystore keystore.jks -alias "Aliasname"
Enter keystore password:
Re-enter new password:
Trust this certificate? [no]:
我需要在第一个命令成功时自动运行此命令。它要求输入密码。我需要自动输入它。最后是的。
如何使用.bat文件执行此操作?如果keytool符合标准输入,则可以使用:
(
echo your_password
echo your_password
echo y
)|keytool -importcert -file myfile.cer -keystore keystore.jks -alias "Aliasname"