You can do this way, Runtime.getRuntime().exec(command) Regards, Jelda
"If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas." -George Bernard Shaw
Originally posted by java_gunjan: hi! everybody i'm in fix.my problem is, i want to run DOS commands through my java application.how to do that.any suggestions. a java evangelist
Please do not crosspost. This same question was asked in beginner forum and answered by me. I'd not have bothered to respond if I'd known that someone else had already given you the solution (as R. Jelda has in this forum). Here is a link to that. In my response I've provided a link to an article about runtime exec.
Ever Existing, Ever Conscious, Ever-new Bliss
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop