How can I run this following Code with a bat
file/ vbs
-File and close the console instead of starting it?
cmd /c call %USERPROFILE%\myProgrammDir\jdk1.7.0_10\bin\java.exe -jar %USERPROFILE%\myProgrammDir\myProgramm.jar
How can I run this following Code with a bat
file/ vbs
-File and close the console instead of starting it?
cmd /c call %USERPROFILE%\myProgrammDir\jdk1.7.0_10\bin\java.exe -jar %USERPROFILE%\myProgrammDir\myProgramm.jar
I'd try changing call
to start
.
Like this:
cmd /c start %USERPROFILE%\myProgrammDir\jdk1.7.0_10\bin\java.exe -jar %USERPROFILE%\myProgrammDir\myProgramm.jar