Jump to content
Sign in to follow this  
clearguy

How to execute HTML file

Recommended Posts

randall

type in _RunDos in the autoit help

Edited by randall

Share this post


Link to post
Share on other sites
jezzzzy

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
Josbe

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
jezzzzy

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
WTS

even better ..

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

Share this post


Link to post
Share on other sites
clearguy

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
herewasplato

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
WTS

check _INetBrowse from my sig it has like 4 ways.

nice..

Share this post


Link to post
Share on other sites
SmOke_N

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.

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.

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  

×