In addition to the system on Windows, at least you can use shell.exec , which will open the file using the application specified in the Windows file associations. For example, shell.exec("file.txt") will open a text file in your favorite text editor, shell.exec("file.mp3") will launch a media player, etc.
Hong ooi
source share