Page 1 of 1
can XY set its environment variables
Posted: 08 Sep 2014 04:09
by yusef88
like windows can i set environment variables inside XY?
Re: can XY set its environment variables
Posted: 08 Sep 2014 08:26
by highend
SC perm is (probably) what you're looking for.
Re: can XY set its environment variables
Posted: 08 Sep 2014 08:41
by yusef88
so i can run any file in this folder (via scripts) just by type "%tools%\app.exe"
Re: can XY set its environment variables
Posted: 08 Sep 2014 09:13
by highend
Ok, you want real environment variables.
Since Vista, setx is available by default, for xp you need to download it...
Code: Select all
run """%COMSPEC%"" /c SETX ""tools"" ""D:\master\tools""", , 2, 0;
Re: can XY set its environment variables
Posted: 08 Sep 2014 12:13
by bdeshi
Wouldn't registry editing suffice?
Edit: nope, that requires logging off/on...

Re: can XY set its environment variables
Posted: 08 Sep 2014 14:06
by klownboy
Be aware though that when setting Windows environmental variables in XYplorer that they may not be recognized "within" XY until a XY restart. See this
User Environmental Variable Refresh and doing a refresh of environmental variables cid #505 won't help.
Re: can XY set its environment variables
Posted: 08 Sep 2014 20:18
by yusef88
thanks for help but this command worked for me
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=12063
Code: Select all
perm $path = "S:\Portables"
run "$path\geek.exe"
Re: can XY set its environment variables
Posted: 08 Sep 2014 20:26
by highend
By placing it above your first use of the variable?