Two Laptop Bag
The moose likes Java in General and the fly likes windows command 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 "windows command" Watch "windows command" New topic
Author

windows command

Marina JOSEPH
Greenhorn

Joined: Feb 20, 2004
Posts: 16
How to execute windows commands to using Java
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
The Runtime.exec methods should work nicely for you. There are several overloaded methods that do varying things. You can find the details in the API docs.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: windows command
 
Similar Threads
google gone mad...
How to start Tomcat?
not able to set environment variables, HFSJ- beer example
Classpath
Colon in FileName