如何在 nsis 中使用 execwait 暂停 cmd window 5 秒?
How to pause cmd window for 5 seconds using execwait in nsis?
我想使用 java 实用程序 jar 文件检查加密密码的输出,为此我添加了 5 秒超时
ExecWait '"java.exe" -Ddata.dir="C:\example" -jar "encrypt.jar" "DecryptPassword" "5q/wsfafLx8vcsdsd==" "C:\ temp.properties" & 超时 5'
但是我的 cmd window 自动关闭了?如何停止 cmd window 5 秒以检查输出?
&
不是到处都能用的东西,它只在命令解释器中有效。将 cmd.exe /c if 1==1
添加到 ExecWait 字符串的开头。
更好的解决方案是使用 nsExec plug-in 从 stdout 获取结果。
我想使用 java 实用程序 jar 文件检查加密密码的输出,为此我添加了 5 秒超时
ExecWait '"java.exe" -Ddata.dir="C:\example" -jar "encrypt.jar" "DecryptPassword" "5q/wsfafLx8vcsdsd==" "C:\ temp.properties" & 超时 5'
但是我的 cmd window 自动关闭了?如何停止 cmd window 5 秒以检查输出?
&
不是到处都能用的东西,它只在命令解释器中有效。将 cmd.exe /c if 1==1
添加到 ExecWait 字符串的开头。
更好的解决方案是使用 nsExec plug-in 从 stdout 获取结果。