This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: executing DOS commands in java!!!
     
    Similar Threads
    Laptop battery level indicator in Java
    executing java commands using a java program
    Lost on the classpath!
    Trapping of different shells like DOS,Unix
    Problem in process