Page 1 of 1

Open the “Open with ” Dialog ...

Posted: Wed May 21, 2025 4:08 pm
by Axolotl
If the user should be able to open a file and select the program himself ....

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.  

Re: Open the “Open with ” Dialog ...

Posted: Wed May 21, 2025 4:34 pm
by Quin
Nice, added to my Procedure collection.
Works on Windows 10 21H2 IoT. Thanks for sharing!