How to start a HTML Doc with exec ?

Posted By: Henning

How to start a HTML Doc with exec ? - 09/13/07 17:27

Hello,

I am just trying to connect a manual written in HTML to my lite-c script. I thought it should work with :
exec("Manual.htm","");
but it does not. Seems the exec() accepts .exe files, only.
I even tried the absolute path to iexplore.exe as filename and Manual.htm as command-line parameter. Then, Internet Explorer starts, but finds no content.

Any ideas? Just Pure Mode, please.
Posted By: ACKNEX007

Re: How to start a HTML Doc with exec ? - 09/13/07 20:38

try to create a exe with another software that open the html file. (like as using browser control) , or use any functions from user32.dll ,etc
Posted By: dblade

Re: How to start a HTML Doc with exec ? - 09/15/07 16:05

Don't forget, LiteC has WinAPI support, so just search a function in it.
So you don't have to write an external programm.

Else you can execute the InternetExplorer (or any other Browser) with the
*.htm file as a parameter

But Attention!! Absolute paths will may not work on other computers !!!
Posted By: Henning

Re: How to start a HTML Doc with exec ? - 09/24/07 22:20

I was offline some days, thanks for the answers, but I tried IE with full path and my *.htm as parameter with full path, also. Does not work, IE starts but cannot identify the file. Unfortunately, I do not have a S/W to produce an .exe file. Will try to find a function at WIN API. Hope there is something.
Posted By: jcl

Re: How to start a HTML Doc with exec ? - 09/25/07 06:56

Calling IE was correct, but if you want to pass files to an internet browser, you need the prefix "file://" (instead of "http://"). Otherwise your browser will start to look in the internet for that file.
© 2024 lite-C Forums