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.
Creating Variables from UDC
-
binocular222
- Posts: 1419
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Creating Variables from UDC
Code: Select all
perm $path = "S:\Portables"I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Creating Variables from UDC
Thanks again.binocular222 wrote:Config > Refresh, Icons ,History > Tick "Remember permanent variables"Code: Select all
perm $path = "S:\Portables"
Your solution will do the work.
Re: Creating Variables from UDC
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
See: Help / Advanced Topics / Scripting / Variables Scope and Lifetime: Local, ...yusef88 wrote:Any reference to read about creating these variables,please? how create new one and use it?
and: Help / Advanced Topics / Scripting Commands Reference / perm
Re: Creating Variables from UDC
@PeterH ..thanks a lot
XYplorer Beta Club