Sign in to follow this  
Followers 0
brett

Function Run

8 posts in this topic

Hey, i remember you can some how run internet explorer, and with a parameter, you can specify the URL it goes to.

like this...

Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE "$FTPURL"')

But how would u add a var as the URL it should go to?

Thanks,

Brett


-Brett

Share this post


Link to post
Share on other sites



FAQ #9 in the help file should answer that question.

Share this post


Link to post
Share on other sites

k thanks


-Brett

Share this post


Link to post
Share on other sites

I still can't get it, can you just post the code that would work?

Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE "" & $URL')

Thanks

Brett


-Brett

Share this post


Link to post
Share on other sites

$url="http://www.autoitscript.com"
Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE ' & $URL)

close


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

a string is either between single or double quotes.

in you case the whol;e thing is a string so the $URL or $FTPURL will not con that its value since it is treated as string...

example:

$FTPURL="http://www.microsoft.com"

Run('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" ' & $FTPURL)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

lol thanks!


-Brett

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Make sure you have a space between the exe and the web address though!

$FTPURL="http://www.microsoft.com"

Run('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" ' & $FTPURL)

It is there, just hard to see Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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