Running executable jar with .BAT and .CMD prompt is hidden (invisible mode) using Script

preview_player
Показать описание
We are Running executable jar with. BAT or.CMD prompt is hidden (invisible mode) Using Script. This is a quick and easy solution I want to share with you.
Benefits of this solution:
1) In case you are not able to run an executable jar with a double click you can use this method.
2) if you do not want to open that cmd window every time. By using this solution we will run our jar file without opening the cmd file.
Let's begin:
Note: Using JDK 1.8 on my system. -- running JavaFX application jar file in this example.
=================================
Step 1: I need the following things:
.executable jar file

Set WshShell = CreateObject("WScript.Shell")
Set WshShell = Nothing

#RunningJarwithCmdHidderMode #CoolITHelp
Рекомендации по теме
Комментарии
Автор

Thank you for posting this nice video. What about if I want to download and execute my jar file from a web host, how do I do this?

kgbprwl
Автор

Good video. Exactly what I was looking for

EitanWebDev-wslo
Автор

but when i open it with Admin Rights the again the console comes!!! any solution or reason for it?

mohsenfakhar