Java-Open/Launching any file with its default handler with start utility in windows

Java-Open/Launching any file with its default handler with start utility in windows
String cmd = "cmd.exe /c start ";
String file = "c:\\version.txt";
Runtime.getRuntime().exec(cmd + file); 

No comments :

Post a Comment

Your Comment and Question will help to make this blog better...