how to make a batch file for minecraft server code example
Example: minecraft server start batch script
"C:\Program Files\Java\jre1.8.0_291\bin\java.exe" -Xmx1024M -Xms512M -jar spigot-1.12.2.jar
PAUSE
"C:\Program Files\Java\jre1.8.0_291\bin\java.exe" -Xmx1024M -Xms512M -jar spigot-1.12.2.jar
PAUSE