A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Java in General
Joined: Mar 15, 2000
Jan 30, 2002 10:31:00
How do I run DOS commands from a Java program?
Joined: Sep 29, 2000
Jan 30, 2002 14:06:00
Basically you need to use a variation of:
Runtime.getRuntime().exec("cmd /c start myfile.bat");
Do a search on "Runtime exec start" and you will find lots of discussions about this.
I agree. Here's the link:
subject: running dos
What are the most common IDEs SCJP programmers are using?
How to start Tomcat?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014