This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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!!!
     
    Similar Threads
    Problem in process
    Laptop battery level indicator in Java
    Lost on the classpath!
    Trapping of different shells like DOS,Unix
    executing java commands using a java program