aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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]
     
    Consider Paul's rocket mass heater.
     
    subject: executing DOS commands in java!!!