I need to find out default file opener for a given file on Windows so that I can customize the command arguments and open the file with the default opener/viewer.
My
Use this approach to call default opener and enjoy!
public void playItems2(...) throws Exception { ... Process p = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler c:/mp3/myfile.mp3"); p.waitFor(); ... }