Jump to content

Recommended Posts

Posted

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"')
Posted

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")
Posted

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.
Posted

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

Posted

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]

  • Moderators
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...