Creating Variables from UDC

Features wanted...
Post Reply
aviaryan
Posts: 28
Joined: 26 Jun 2014 10:11
Location: India
Contact:

Creating Variables from UDC

Post by aviaryan »

Situation:
For portability, I would like to set some paths using variables so that I can change them all at once when needed.
As for example, many of my favorites, applications, catalog items in XY are of portable softwares that I currently store in S:\Portables . If I migrate this folder to other computer, I may not be able to keep the same path and then the best way to update those will be changing a one-place variable.

Request:
Add a category "Variables" in User Defined Commands or List Management that allows the user to add his variables. These vars will be valid throughout the program just like in-built ones.

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Creating Variables from UDC

Post by binocular222 »

Code: Select all

perm $path = "S:\Portables"
Config > Refresh, Icons ,History > Tick "Remember permanent variables"
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

aviaryan
Posts: 28
Joined: 26 Jun 2014 10:11
Location: India
Contact:

Re: Creating Variables from UDC

Post by aviaryan »

binocular222 wrote:

Code: Select all

perm $path = "S:\Portables"
Config > Refresh, Icons ,History > Tick "Remember permanent variables"
Thanks again. :appl:
Your solution will do the work.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Creating Variables from UDC

Post by yusef88 »

Any reference to read about creating these variables,please? how create new one and use it?

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Creating Variables from UDC

Post by PeterH »

yusef88 wrote:Any reference to read about creating these variables,please? how create new one and use it?
See: Help / Advanced Topics / Scripting / Variables Scope and Lifetime: Local, ...
and: Help / Advanced Topics / Scripting Commands Reference / perm

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Creating Variables from UDC

Post by yusef88 »

@PeterH ..thanks a lot

Post Reply