Jump to content
Sign in to follow this  
Wingens

Opening HTML FILE in internet Explorer

Recommended Posts

Wingens

Hi, i am trying to open a website that i have created, it will be on de cd that the script is running from so i am trying to open a index.html in internet explorer.

this is my piece of code that i am working on:

Func HELP()

$SITE = "Tools\Help\Index.html"

Run("c:\program files\internet explorer\iexplore.exe \Tools\Help\Index.html", "Tools\Help\", @SW_MAXIMIZE)

EndFunc

i think i am doing something wrong.

Can you help me.

sincerely,

Mark Wingens

Share this post


Link to post
Share on other sites
Wingens

i'm getting an error that says my computer does not have a programm connected to the file type so it doen'st know what to do...

Try this:

Func HELP()
$SITE = @ScriptDir & "\Tools\Help\Index.html"
ShellExecute("c:\program files\internet explorer\iexplore.exe", $SITE, @ScriptDir & "\Tools\Help", @SW_MAXIMIZE)
EndFunc

Edited by Wingens

Share this post


Link to post
Share on other sites
Wingens

found it :)

this is how i got it to work:

Func HELP()

ShellExecute("Tools\Help\Index.html")

EndFunc

thx to your very fast reply ;)

many thx

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.