Sign in to follow this  
Followers 0
Tentaal

Using $var with run("")

3 posts in this topic

Hello,

It's maybe a stupid question.. but ....

$var = EnvGet("PROGRAMFILES")

Run("$var\Internet Explorer\iexplore.exe")

does not work.

Why?

Thanks.

Share this post


Link to post
Share on other sites



The reason it doesn't work is that instade a "" (quote) it is treated as a string, not a variable as you are trying to do.

$var = EnvGet("PROGRAMFILES")
Run($var&"\Internet Explorer\iexplore.exe")
oÝ÷ Ù.q©ÚÊ.±ëay«­¢+oj¸nW®+jab븧²×u«­¢+Ø)IÕ¸¡Aɽɵ¥±Í¥ÈµÀìÅÕ½ÐìÀäÈí%¹ÑɹÐáÁ±½ÉÈÀäÈí¥áÁ±½É¹áÅÕ½Ðì¤

It's all in the help file.


> there are 10 types of people in the world, those who understand binary and those who don't.

Share this post


Link to post
Share on other sites

Ok, thanks a lot!

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