// we assume that the .lnk is in the current directory
String currentDir = new File(".").getCanonicalPath();
try {
Runtime.getRuntime().exec
("cmd /c start " + currentDir + "/viewLog.lnk");
}
catch (Exception e){
JOptionPane.showMessageDialog
(null, e.getMessage(),"Oups", JOptionPane.ERROR_MESSAGE);
}
Written and compiled by Réal Gagnon ©1998-2007
[ home ]