Jump to content

Best way to open Internet Explorer


Guest Jc77
 Share

Recommended Posts

Hi All.

I would like to know the safest way to launch IE in is.

I will have multiple machines that I will distribute my script to. Each has

a different windows version and hard drive configurations.

I've seen several different ways to launch IE with a URL in it.

The easiest way I've seen is

Run(iexplore.exe http://www.website.com)

But I've also seen some more complex Run() syntax using @Comspec and

@ProgramsDir.

I've also seen the full directory called like

Run('Program Files\Internet Explorer\iexplore.exe')

Some machines might not have this path so I don't to write it this way.

I want to open a new and maximized window in IE pointing to a URL.

What is the best syntax to use so the machines I distribute this

to will all work correctly?

Thanks for any help.

Link to comment
Share on other sites

Hi All.

I would like to know the safest way to launch IE in is.

I will have multiple machines that I will distribute my script to. Each has

a different windows version and hard drive configurations.

I've seen several different ways to launch IE with a URL in it.

The easiest way I've seen is

Run(iexplore.exe http://www.website.com)

But I've also seen some more complex Run() syntax using @Comspec and

@ProgramsDir.

I've also seen the full directory called like

Run('Program Files\Internet Explorer\iexplore.exe')

Some machines might not have this path so I don't to write it this way.

I want to open a new and maximized window in IE pointing to a URL.

What is the best syntax to use so the machines I distribute this

to will all work correctly?

Thanks for any help.

<{POST_SNAPBACK}>

Here is one way %WinDir%\System32\Rundll32.exe Url,FileProtocolHandler www.yahoo.com
Link to comment
Share on other sites

Why not using the default browser? It will work on all computers, either they have ie, firefox, netscape, avantgo etc...

Here's the code... I don't remember who gave it to me but I am thankful to that person, it helped my program greatly ;)

$url = "enter the url here..."
Run(@Comspec & " /c start " & $url)
Link to comment
Share on other sites

  • Moderators

Why not using the default browser?  It will work on all computers, either they have ie, firefox, netscape, avantgo etc...

Here's the code...  I don't remember who gave it to me but I am thankful to that person, it helped my program greatly :P

$url = "enter the url here..."
Run(@Comspec & " /c start " & $url)

<{POST_SNAPBACK}>

These people helped you if you forgot already: @Comspec Help

EDIT: Had 2 "Quotes"? ;)

Edited by ronsrules

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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