LNK skipped by PFA

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

LNK skipped by PFA

Post 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.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by admin »

What is your PFA definition to open LNKs?

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post 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";
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by admin »

LNKs are resolved unconditionally before PFAs are matched.

So, your thing will not work. :|

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post 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.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post 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.

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

In this case I would. That's why PFA comes into play, me thinks...
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by admin »

Well, I revisited the thing and, yikes, I agree with you now! Next version ...

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post 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! :appl:
Power-hungry user!!!

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

Sorry but my posted definition doesnt work as expected.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by admin »

Appears to work here. What's the problem?

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post 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.
Power-hungry user!!!

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: LNK skipped by PFA

Post 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
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post 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?
Power-hungry user!!!

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: LNK skipped by PFA

Post 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;
One of my scripts helped you out? Please donate via Paypal

Post Reply