Results 1 to 2 of 2
  1. #1
    Cosmos is offline Member
    Join Date
    Jul 2011
    New Delhi,India
    Rep Power

    Question help required in exec command...

    i have been trying to understand the exec command......i was stuck with its two overloaded version.....these are:-

    exec(String[] cmdarray,String[] env)

    exec(String[] cmdarray,String[] env,File dir)

    i wanted to know what does these versions do???i.e.what does env array of String does and what is the use and work of dir in the method???if you can explain with some examples....

    thanks in advance

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    First can you copy the contents of the API doc here for those methods?
    Then add your questions about what the doc says.

Similar Threads

  1. Letting my program command the command prompt
    By Smokey. in forum Threads and Synchronization
    Replies: 4
    Last Post: 03-29-2011, 11:34 PM
  2. question with command prompt and Runtime.exec()
    By mosquetero in forum New To Java
    Replies: 3
    Last Post: 08-11-2009, 12:08 PM
  3. Replies: 6
    Last Post: 12-29-2008, 02:47 PM
  4. linux generic Exec command...???
    By nlgopi in forum Advanced Java
    Replies: 5
    Last Post: 10-08-2008, 07:08 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts