|
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??
|