This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes executing DOS commands in java!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "executing DOS commands in java!!!" Watch "executing DOS commands in java!!!" New topic
Author

executing DOS commands in java!!!

bala chidambaram
Greenhorn

Joined: Jan 19, 2004
Posts: 24
hello
I know 'c' upto some extend. In 'c' that we can include 'dos' commands using 'system()' command(eg. system("dir")). Is any command is there in java to do the same?
thank u.
Sadanand Murthy
Ranch Hand

Joined: Nov 26, 2003
Posts: 382
Originally posted by bala chidambaram:
hello
I know 'c' upto some extend. In 'c' that we can include 'dos' commands using 'system()' command(eg. system("dir")). Is any command is there in java to do the same?
thank u.

Do a search in these fora. This question was asked and answered just a few days ago.


Ever Existing, Ever Conscious, Ever-new Bliss
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Basic idea:More info:
  • When Runtime.exec() won't
  • Using Runtime.exec to Invoke Child Processes and Programming With File Attributes


  • [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
     
    GeeCON Prague 2014
     
    subject: executing DOS commands in java!!!