Page 1 of 1

RAF and System Variables not working correctly

Posted: 08 Feb 2025 14:25
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).

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 14:48
by admin
Is %MYPath% listed in Help | Environment Variables?

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 14:52
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.

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 15:09
by admin
Can't reproduce.

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

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

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 15:14
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…

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 15:35
by admin
This may help: viewtopic.php?t=13377

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 16:27
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...

Re: RAF and System Variables not working correctly

Posted: 08 Feb 2025 16:54
by admin
1) Just a XYplorer restart should do.

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