This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

executing DOS commands in java!!!  RSS feed

 
bala chidambaram
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 382
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basic idea:More info:
  • When Runtime.exec() won't
  • Using Runtime.exec to Invoke Child Processes and Programming With File Attributes
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!