How to execute more than one dos command in Java???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • janaki112
    New Member
    • Dec 2006
    • 5

    #1

    How to execute more than one dos command in Java???

    i want to convert a perl program to java.... for that i want to know how to execute more than one command in dos mode using java without going to tat dos prompt... for eg.. load english rules...
    this is one of the commands which i want to execute....
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by janaki112
    i want to convert a perl program to java.... for that i want to know how to execute more than one command in dos mode using java without going to tat dos prompt... for eg.. load english rules...
    this is one of the commands which i want to execute....
    you could use a sequence of exec() method calls from RunTime see
    http://www.thescripts. com/forum/thread580333.ht ml

    or create a DOS batch file and execute it with in exec() call

    Comment

    Working...