private void btnDevelopersActionPerformed(java.awt.event.ActionEvent evt) { try{ //OPEN A HTML FILE ON MY COMPUTER } catch(Exception ex){ System.out.println("cannot execute command. " +ex); } }
// find program for given file Program p = Program.findProgram("pdf"); // could also be html or whatever p.execute(printFilePath); // throw file at program
String webpage="C:\\myRootFolder\\myWebPage.html"; Runtime.getRuntime().exec("cmd /c start "+webpage);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)