Calling IExplore.exe from Progress Program

rick.souza

New Member
Hi, all!

I need to call Internet Explorer from within a Progress Program in order to open an HTML file. For this I use PROCEDURE WinExec EXTERNAL "kernel32.dll". It works fine meanwhile, I have to inform the directory with the application name via parameter for the procedure.
Exemple:
assign c-aplic-iexplore = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
c-html-file = "AnyFile.HTML").

run winexec (input c-aplic-iexplore + chr(32) + c-arquivo-html, input 1, output i-return-exec).

The problem is that this way I assume that in all stations the application is in the same directory, what cannot be true.

Is there a way to search for the application IEXPLORE.EXE and to get its directory?

I tried to use the GET-KEY-VALUE meawhile it reads the .INI file and not the REGISTRY.

Please, any help would be appreciated.

Cordially,

Ricardo Souza (ricardo.souza@mail.com).
 

FrancoisL

Member
You can always let the OS decide wich application to use to open the html file.

example

OS-COMMAND VALUE("start mypage.html").


It will use the default web browser to open your html file.
 

rick.souza

New Member
François,

Thanks for the help.

Unfortunally, the clients environment does not accept the OS-COMMAND call, because it is prohibited.

I continue waiting for another solution. If you have, please, send me.

Cordially,

Ricardo Souza.
 
Top