Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executing DOS commands in java!!!

 
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