load html page


Updated by Altair Forum User
Hi,
Can any one help me how to open a html page in HM.
i tried the below way, it is working only when there is an internet explorer opend else not working , how to fix the same.
proc openfil { } {
package require dde
set FilePath [file join [hm_info -appinfo SPECIFIEDPATH hm_scripts_dir] 'help' 'page.html']
catch {dde execute -async iexplore WWW_OpenURL '$FilePath' }
}
openfil
looking forward to your replie....
Sort by:
1 - 3 of
31


Updated by Altair Forum User
maybe you want to add the ampersand at the end of the exec statement, so that the browser will not be connected to hm ...
exec firefox.exe $FilePath &
you are using the dde package (Docu: This command allows an application to send Dynamic Data Exchange (DDE) command when running under Microsoft Windows).
As I recall every Windows system comes with the ie - where's the problem?
using a different browser might work by 'exec firefox.exe $FilePath' (replace path to firefox executable ...)