Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
It is sorta covered in the
JavaRanch Style Guide
subject: running dos
How to start Tomcat?
What are the most common IDEs SCJP programmers are using?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013