load html page
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....
Answers
-
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 ...)
0 -
Hi,
Thank you its working
Regards
Ramu
0 -
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 &
0