Code: Select all
Procedure OpenFileWithAppFromList(FileName.s)
If FileSize(FileName) > -1
RunProgram("Rundll32.exe", "shell32.dll,OpenAs_RunDLL "+FileName, GetPathPart(FileName))
EndIf
EndProcedure
OpenFileWithAppFromList("C:\Temp\GX_Test_00.bmp") ; <= change this filename to an existing one.