Sign in to follow this  
Followers 0
clearguy

How to execute HTML file

11 posts in this topic




#2 ·  Posted (edited)

type in _RunDos in the autoit help

Edited by randall

Share this post


Link to post
Share on other sites

How to execute a HTML file ?

I tried this:

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE" "my.html")

any help? thanx

Try with single quotes like this:

run('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" "my.html"')

Share this post


Link to post
Share on other sites

How to execute a HTML file ?

I tried this:

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE" "my.html")

any help? thanx

And what? Any error?

If you use IE, must be work this alternative, (with a comma between args):

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "my.html")

Share this post


Link to post
Share on other sites

And what? Any error?

If you use IE, must be work this alternative, (with a comma between args):

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "my.html")
That comma will probably throw an error in the Run() function.

Share this post


Link to post
Share on other sites

even better ..

RunWait(@ComSpec & " /C " & 'my.html', "", @SW_HIDE)

Share this post


Link to post
Share on other sites

Try with single quotes like this:

run('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" "my.html"')
That works great! :wacko:

That comma will probably throw an error in the Run() function.

Yes it does :D

even better ..

RunWait(@ComSpec & " /C " & 'my.html', "", @SW_HIDE)
I thought about using a macro command,but didn't found...

Thank you all :D

Share this post


Link to post
Share on other sites

That comma will probably throw an error in the Run() function.

Not if you have a folder named "my.html" in the same folder that the script runs from. :-)

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "my.html")

Run("filename", "workingdir")


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

check _INetBrowse from my sig it has like 4 ways.

nice..

Share this post


Link to post
Share on other sites

check _INetBrowse from my sig it has like 4 ways.

I'll have to sticky that myself as many times as this type of question is asked, but if they want to make sure IE is running to use IE.au3 some of these options seem viable to me.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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  
Followers 0