How to make a Bat file of CMD command?

lryukichi

Honorable
Sep 13, 2013
53
0
10,630
guys how can i use .bat file with CMD commands in it?
my friend and i loves to play minecraft and im the one who's hosting it
but when we're going to play i always open cmd and type everything to open my server
its really big help if i only use .bat with cmd commands in it
so that command is

cd C:\Users\Random\Desktop\MineCraft Server
then after i enter that
java -jar minecraft_server.1.8.5.jar

TIA
 


thanks
but after the .jar file pop up,it will immediately close
i think there's a command to make the .jar file keep open