Results 1 to 2 of 2
  1. #1
    postaholic066 is offline Member
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Default problems in running d command prompt commands

    I've been using Runtime.getRuntime().exec(command) to fire command prompt commands in my java prog. The following s a template of the code I'm usin :-

    //to open windows explorer and IE
    String[] command = {"cmd", "/c", "explorer.exe", "&", "iexplore"};
    Process p = Runtime.getRuntime().exec(command);
    this opens the explorer but not IE
    Any mistakes??

  2. #2
    postaholic066 is offline Member
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

Similar Threads

  1. how to run windows command prompt in java parogram ?
    By indikasampath2000 in forum AWT / Swing
    Replies: 4
    Last Post: 12-16-2008, 06:51 AM
  2. Running eclipse java project on command prompt
    By hnmapara in forum New To Java
    Replies: 1
    Last Post: 07-09-2008, 08:29 AM
  3. accessing command prompt using java (netbeans)...
    By kureikougaiji in forum New To Java
    Replies: 6
    Last Post: 06-27-2008, 03:01 PM
  4. Problem during executing Command Prompt
    By keshari in forum Advanced Java
    Replies: 4
    Last Post: 06-05-2008, 04:06 AM
  5. Replies: 2
    Last Post: 08-06-2007, 09:16 PM

Posting Permissions

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