Sign in to follow this  
Followers 0
Lakai[NL]

Variable problem

2 posts in this topic

Alright, i have an input button, where people can type in an address, and it is supposed to go to that address, here are the variable references for it:

$forumurl = GUICtrlCreateInput("Insert URL Here", 72, 15, 250, 20)
Global $var1 = (GUICtrlRead($forumurl))
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE" & $var1)

When I hit ok after i enter in the URL, i get this message

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

Error: Unable to execute the external program.

The system cannot find the file specified.

Thanks, Lakai.

Share this post


Link to post
Share on other sites



If you don't notice, he's putting a space between the actual path and variable.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

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