Page 1 of 2
LNK skipped by PFA
Posted: 28 Apr 2016 01:48
by tiago
If a LNK's target is invalid, PFA is processed as it should.
Otherwise, PFA'ed LNK pointing to a valid target, file or folder, PFA will be ignored.
Reasoning: I need my .lnk files not opening their target files, leading to actual files instead.
Re: LNK skipped by PFA
Posted: 28 Apr 2016 08:31
by admin
What is your PFA definition to open LNKs?
Re: LNK skipped by PFA
Posted: 28 Apr 2016 11:06
by tiago
hi, there!
Code: Select all
lnk>$go = property("#linktarget", "<curitem>"); while(exists($go) != 2&&exists($go) != 1) { $go = gettoken("$go", "-2", "\", , "1") }; tab("new"); goto "$go";
Re: LNK skipped by PFA
Posted: 28 Apr 2016 11:22
by admin
LNKs are resolved unconditionally before PFAs are matched.
So, your thing will not work.

Re: LNK skipped by PFA
Posted: 28 Apr 2016 11:32
by tiago
Some external drives I have may contain viruses. Inspecting .exe locations (their context) instead of launching them would help me much deciding what could or could not be saved from disgrace.
Sad. Thanks.
Re: LNK skipped by PFA
Posted: 28 Apr 2016 11:38
by admin
I see. But I don't see a clever way how to handle this. To resolve LNKs is generally the expected behavior. You normally would not expect or like an exception to this rule.
Re: LNK skipped by PFA
Posted: 28 Apr 2016 11:49
by tiago
In this case I would. That's why PFA comes into play, me thinks...
Re: LNK skipped by PFA
Posted: 28 Apr 2016 12:23
by admin
Well, I revisited the thing and, yikes, I agree with you now! Next version ...
Re: LNK skipped by PFA
Posted: 28 Apr 2016 12:30
by tiago
This unexpected high-quality, users-awareness should be listed among the reasons why people need XYplorer, not a generic file manager.
Anticipated thanks!

Re: LNK skipped by PFA
Posted: 28 Apr 2016 15:01
by tiago
Sorry but my posted definition doesnt work as expected.
Re: LNK skipped by PFA
Posted: 28 Apr 2016 15:24
by admin
Appears to work here. What's the problem?
Re: LNK skipped by PFA
Posted: 28 Apr 2016 15:33
by tiago
.lnk files are ignored by PFA: target files are opened instead of targeted as a in-place travel, target folders are opened in the same tab instead of a new one as per defined.
Re: LNK skipped by PFA
Posted: 28 Apr 2016 16:26
by highend
That sounds more that you messed up the order of the definitions because your script (which can btw be much shorter) should still work
Re: LNK skipped by PFA
Posted: 28 Apr 2016 16:39
by tiago
highend wrote:That sounds more that you messed up the order of the definitions...
It fails even at the 1st line of the list; double checked against other active entries, no other .lnk related.
highend wrote:because your script (which can btw be much shorter) should still work
Of course I'd like to learn it. How?
Re: LNK skipped by PFA
Posted: 28 Apr 2016 16:46
by highend
1.) Then put a step; command in front of the script part and look where it fails
2.)
E.g.:
Code: Select all
lnk>::$go = <prop #linktarget>; while(!exists($go)) { $go = gettoken($go, -2, "\", , 1) }; tab("new"); goto $go;