Open File using EXE in Java


String str1="\"";
String str2="\"";   

String str=str1+sample.xls+"\\"+str2;
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE  "+str);;
 

Comments