get java to run a bat code example
Example: how to execute the spring bat file from command prompt
Open Start.
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the path and name of the batch file, and press Enter: C:\PATH\TO\FOLDER\BATCH-NAME.bat.