Open a file from Powerbuilder using Windows default associated program
Posted on 2013-06-26
I have a list of files with their paths in a data window and I would like to add functionality where the user could click the file and it will open using it's default Windows associated application.
Basically I would like to emulate the same process that happens when you go to windows explorer and just double-click a file, if it a word doc it launches word, if an excel doc it launches excel, etc. Windows opens it with it's associated application. I have the file name and path to pass to the Windows API call I just need to figure out how to make that call.
IDE: Powerbuilder 12.5.2 (Classic)
OS: Windows 7 64 bit