LNK skipped by PFA
Forum rules
You might want to read this if you're looking for priority service
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%).
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
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
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.
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:
-
tiago
- Posts: 589
- Joined: 14 Feb 2011 21:41
Re: LNK skipped by PFA
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
LNKs are resolved unconditionally before PFAs are matched.
So, your thing will not work.
So, your thing will not work.
FAQ | XY News RSS | XY X
-
tiago
- Posts: 589
- Joined: 14 Feb 2011 21:41
Re: LNK skipped by PFA
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.
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
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.
FAQ | XY News RSS | XY X
-
tiago
- Posts: 589
- Joined: 14 Feb 2011 21:41
Re: LNK skipped by PFA
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
Well, I revisited the thing and, yikes, I agree with you now! Next version ...
FAQ | XY News RSS | XY X
-
tiago
- Posts: 589
- Joined: 14 Feb 2011 21:41
Re: LNK skipped by PFA
This unexpected high-quality, users-awareness should be listed among the reasons why people need XYplorer, not a generic file manager.
Anticipated thanks!
Anticipated thanks!
Power-hungry user!!!
-
tiago
- Posts: 589
- Joined: 14 Feb 2011 21:41
-
admin
- Site Admin
- Posts: 67299
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
tiago
- Posts: 589
- Joined: 14 Feb 2011 21:41
Re: LNK skipped by PFA
.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
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
It fails even at the 1st line of the list; double checked against other active entries, no other .lnk related.highend wrote:That sounds more that you messed up the order of the definitions...
Of course I'd like to learn it. How?highend wrote:because your script (which can btw be much shorter) should still work
Power-hungry user!!!
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: LNK skipped by PFA
1.) Then put a step; command in front of the script part and look where it fails
2.)
E.g.:
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
XYplorer Beta Club