Jump to content

Evaluating a variable


Recommended Posts

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

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