Run .exe programs from openedge

Might also find the below code useful the example runs a web browser via a link. But should be able to find lots on EXTERNAL "shell32
Code:
PROCEDURE ShellExecuteA EXTERNAL "shell32" : /*when ran opens default web browser*/ 
    define input parameter hwnd as long. 
    define input parameter lpOperation as char. 
    define input parameter lpFile as char. 
    define input parameter lpParameters as char. 
    define input parameter lpDirectory as char. 
    define input parameter nShowCmd as long. 
    define return parameter hInstance as long. 
END PROCEDURE. 

 run ShellExecuteA in this-procedure (0,"open",ipchrWebSite,"","",1,output intOutput).
 
Back
Top