I am not getting what you mean by bat file of a console application? The general purpose of a .bat file is to execute a set of commands or at times to put your
Java application in the startup.
Although the sample above is an example of how to do it and perhaps the closest answer to your question, I dont see a reason of a writing a bat file just to call an executable, which can be done directly.