Hi What are .bat files and how to run our own .bat files and execute them. bye Rgds Ravi.
Erik Pragt
Ranch Hand
Joined: Sep 08, 2001
Posts: 125
posted
0
.bat are (old) ms-dos batch files, in which some scripting can execute a batch of commands for you. In short, this has nothing to do with Java. Btw, you can execute them in (at least) 2 ways : by typing their name in a command prompt (wow!) and by double clicking them in Windows (double wow!! ) Greetings, Erik
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Actually it is about java if the question is how to start a .bat file FROM java. Try- Runtime.getRuntime().exec("cmd /K start run.bat"); On the other hand you can also use .bat file to start your java application myApp.bat ********************** (put whatever pathing and changing of directory commands you need here) java -cp ./yourclasspath myApp parameter1 etc. **********************