run cmd for windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsn
    New Member
    • Sep 2007
    • 237

    run cmd for windows

    hello everyone i just want to ask if someone can help with understanding how to run cmd to execute some commands
    and after executing them i want to read the output to run some functions.
    this is for windows xp

    thanks in advance

    hsn
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by hsn
    hello everyone i just want to ask if someone can help with understanding how to run cmd to execute some commands
    and after executing them i want to read the output to run some functions.
    this is for windows xp

    thanks in advance

    hsn
    Have a look at the Runtime.exec() method to fire up an external process
    and read all about manipulating the process in the API documentation for the
    Process class.

    kind regards,

    Jos

    Comment

    • hsn
      New Member
      • Sep 2007
      • 237

      #3
      thanks alot Jos
      you really help alot..

      thanks again

      hsn

      Comment

      Working...