RAF and System Variables not working correctly

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

RAF and System Variables not working correctly

Post by Garonne »

Ok, so I'm working on multiple (well, 2 actually) computers at home. I tried to experiment with Rapid Access Folders pointing to a Folder, which is defined by a computer local environment Variable.

i.e.

Code: Select all

Computer 1:
%MYPath% = C:\Path\

Computer 2:
%MYPath% = D:\XX\Path

RAF Definition:
LPath>%MYPath%

Result:
LPath = <xypath>%MYPath%
XYplorer seems to asume, the Path is supposed to be relative to XY, since no specifics are clear in the definition, when the variable contains the absolute path (drive included).

admin
Site Admin
Posts: 66546
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: RAF and System Variables not working correctly

Post by admin »

Is %MYPath% listed in Help | Environment Variables?

Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: RAF and System Variables not working correctly

Post by Garonne »

That's how I got the idea:

Code: Select all

Additionally, Rapid Access Folders support:

· Environment Variables, eg:        %TEMP% 

· XYplorer Native Variables, eg:        <xydata> 

Note that these variables are resolved at startup or when the RAF are created or updated, not when a RAF is clicked.
Directly from the "Rapid Access Folders" Page.

I wouldn't mind if I need to add some kind of Flag to the definition to specify the Path shouldn't be assumed to be relative, though.

admin
Site Admin
Posts: 66546
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: RAF and System Variables not working correctly

Post by admin »

Can't reproduce.

1) Show a screenshot of Tools | List Management | Rapid Access Folders...

2) What is returned by echo %MYPath%;?

Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: RAF and System Variables not working correctly

Post by Garonne »

Strange.

Propagation of the variables to XYplorer seems to be inconsistent.

Restarting on my 2nd computer worked fine now…

So it's apparently not your fault.

Will do some further testing to figure out why it sometimes doesn't work…

admin
Site Admin
Posts: 66546
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: RAF and System Variables not working correctly

Post by admin »

This may help: viewtopic.php?t=13377

Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: RAF and System Variables not working correctly

Post by Garonne »

Yeah, probably the same windows environment issue.

Might work once I restart windows with the variables properly set up.

Hopefully twinBASIC will be better...

admin
Site Admin
Posts: 66546
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: RAF and System Variables not working correctly

Post by admin »

1) Just a XYplorer restart should do.

2) Hardly, this is a fundamental Windows design feature.

Post Reply