Spongey Posted August 30, 2006 Share Posted August 30, 2006 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 More sharing options...
Valuater Posted August 30, 2006 Share Posted August 30, 2006 (edited) maybe... Run("C:\Program Files\Internet Explorer\Iexplore.exe " & $ps_control_rec_ip) 8) Edited August 30, 2006 by Valuater Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now