public static void openFile(File fileObj)
{
StringBuilder sb = new StringBuilder();
sb.append("cmd.exe /C start ");
sb.append(fileObj.getAbsolutePath());
System.out.println("openFile: " + sb);
try
{
Runtime.getRuntime().exec(sb.toString());
}
catch (IOException e)
{
System.out.println("EEExxxccc");
}
}
No comments:
Post a Comment