Jump to content
Sign in to follow this  
Tentaal

Using $var with run("")

Recommended Posts

Tentaal

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
jinxter

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.