Sign in to follow this  
Followers 0
Spongey

Evaluating a variable

2 posts in this topic

How do you evaluate a variable to run in a script? For instance, I am trying to run Intenet Explorer with ip addresses from another file. But it translates the variable literally instead of the value of the variable. The script is:

While 1

$ps_control_rec = FileReadLine( $ps_control_file )

If @error = -1 Then

ExitLoop

Else

$ps_control_rec_day = StringMid($ps_control_rec,1,3)

$ps_control_rec_ip = StringMid($ps_control_rec,5,15)

$ps_control_rec_period = StringMid($ps_control_rec,21,1)

$ps_control_rec_delay = StringMid($ps_control_rec,23,5)

Run("C:\\Program Files\Internet Explorer\\Iexplore.exe $ps_control_rec_ip")

Internet Explorer tries to open the address:

http://$ps_control_rec_ip/

Any suggestions?

Thanks alot!

Spongey

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

maybe...

Run("C:\Program Files\Internet Explorer\Iexplore.exe " & $ps_control_rec_ip)

8)

Edited by Valuater

NEWHeader1.png

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