Results 1 to 2 of 2
- 09-10-2008, 03:45 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 2
- Rep Power
- 0
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??
- 09-10-2008, 03:47 PM #2
Member
- Join Date
- Sep 2008
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
how to run windows command prompt in java parogram ?
By indikasampath2000 in forum AWT / SwingReplies: 4Last Post: 12-16-2008, 06:51 AM -
Running eclipse java project on command prompt
By hnmapara in forum New To JavaReplies: 1Last Post: 07-09-2008, 08:29 AM -
accessing command prompt using java (netbeans)...
By kureikougaiji in forum New To JavaReplies: 6Last Post: 06-27-2008, 03:01 PM -
Problem during executing Command Prompt
By keshari in forum Advanced JavaReplies: 4Last Post: 06-05-2008, 04:06 AM -
problem when I try to compile a program from command prompt
By osval in forum Advanced JavaReplies: 2Last Post: 08-06-2007, 09:16 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks