File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: executing DOS commands in java!!!