File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes .bat files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark ".bat files" Watch ".bat files" New topic
Author

.bat files

ram shyam ravi
Greenhorn

Joined: Sep 20, 2002
Posts: 14
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
.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
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.
**********************
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: .bat files
 
Similar Threads
Running application
increase java heap size
TOMCAT ON WINDOWS NT
WA #1.....word association
WA #2 ..... word association