使用vbs调取jar包(解决无窗口的问题)

set WshShell = WScript.CreateObject("WScript.Shell")
strRoot = WshShell.ExpandEnvironmentStrings("%******%")
WshShell.Exec strRoot+"\jre\bin\javaw -jar "+strRoot+"\client\123.jar"


2.用vbs调用bat

set WshShell = CreateObject("WScript.Shell")
cmd=WshShell.RUN("123.bat", runhide)

你可能感兴趣的:(jar包)