Page 1 of 1
Dealing with symlinks
Posted: 09 Dec 2022 10:40
by MBaas
I'm not sure if I am missing a feature (though I RTFM'ed) or if what I'm asking is impossible or if it has not been implemented: I installed some software from the Microsoft Store - and that created a folder for the app in C:\Users\{me}\AppData\Local\Microsoft\WindowsApps\ which contains a .exe with 0 bytes and Type "Application (symlink)".
How can I find out the location this symlink links to?
Re: Dealing with symlinks
Posted: 09 Dec 2022 16:22
by jupe
Info panel Meta tab, Ctrl+3 by default.
Re: Dealing with symlinks
Posted: 09 Dec 2022 17:20
by MBaas
Thanks - but that's not it.
09-12-2022_17-17-41.png
Wouldn't it be nice if we had a scripting command that would give the target of symlinks (or junctions or even simple .lnk etc.)=

Re: Dealing with symlinks
Posted: 09 Dec 2022 17:27
by jupe
Those aren't normal symlinks then, and there is plenty scripting commands to deal with normal symlink/junction/link targets, so not sure what you are talking about there, and what I suggested originally would work for normal symlinks.
2022-12-10_032900.png
Re: Dealing with symlinks
Posted: 09 Dec 2022 17:52
by MBaas
Hmm, according to the properties tab it is a symlink:
09-12-2022_17-47-58.png
I admittedly don't know much about these, so I can't judge if it is normal or not. But there clearly is something magical about it - coz' it launches the app when I dbl-click that empty file.
So if you suggest there are plenty commands, could you pls. recommend one that would reveal the target of symlink (or goto it)?
Re: Dealing with symlinks
Posted: 09 Dec 2022 17:57
by jupe
It is probably just being identified as a symlink because it has the L attribute, but who knows what Microsoft does behind the scenes with that UWP stuff. For a normal symlink, for exampleecho <prop LinkTarget>; and you can use the property() cmd to lookup junction/symlinks targets etc.
Re: Dealing with symlinks
Posted: 09 Dec 2022 18:08
by MBaas
Thanks! I tried
echo <prop LinkTarget>; which gave an empty msg and
text property("#ResolveJunctionsAll", "C:\Users\mbaas\AppData\Local\Microsoft\WindowsApps\MartinPikryl.WinSCP_tvv458r3h9r5m\WinSCP.exe"); just echos the filename.
So I went ahead and tried the
LinkShell Extension and it can't deal with that file, too.
Bloody Microsoft, not playing by the rules, it seems.
Re: Dealing with symlinks
Posted: 09 Dec 2022 19:41
by Horst
In Total Commander there is a plugin which shows all type of links and their target.
For this case the object Type is identified as "Other MS" and the funny fact is that the target is the path to the 0 byte exe.
C:\Users\myname\AppData\Local\Microsoft\WindowsApps\name-of_the_exe
Screenshot - 09.12.2022 , 19_40_29.png
Re: Dealing with symlinks
Posted: 10 Dec 2022 12:49
by MBaas
Ok, I guess I have the answer: it' an "App execution Alias"! (see
here)