I've the following code which launches an exe
Runtime.getRuntime().exec("some.exe");
The problem is, I see a console which pops up for a while until some.exe is triggerred.
Options that I've tried so far
Runtime.getRuntime().exec("cmd /C /Q start /B some.exe")
Runtime.getRuntime().exec("cmd /C start some.exe")
Runtime.getRuntime().exec("cmd /c some.exe")
and none of them suppresses the console. I don't want to add a bat file that inturn will launch some.exe silently. Is there a way to suppress the console directly from
Runtime.getRuntime().exec()
?