Page 1 of 1

Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-04-10, 13:00 UTC
by formtapez
I use cm_CopyFullNamesToClip very often to copy file locations and paste them in other applications.
When there are *.LNK files (Symbolic links) which point to another location i would like to have the original location copied, instead the path of the *.LNK file.

Can we have this feature in future versions of Total Commander?
cm_CopyFullNamesToClipDoFollowSymlinks
cm_CopyTrueNamesToClip
cm_CopyResolvedNamesToClip
cm_CopyOriginalNamesToClip
...

Re: Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-04-10, 17:36 UTC
by Dalai
Just a correction: Symlinks have nothing to do with .lnk files! Symlinks only work on NTFS file-systems on Vista and higher, but .lnk files have been existing since the early days of Windows 95.

Maybe a content plugin can help you, one that makes the destination of .lnk files available, like Shortcut (totalcmd.net is down ATM). Define a custom columns view and then use cm_CopyFileDetailsToClip.

Regards
Dalai

Re: Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-04-11, 04:44 UTC
by MVV
I think some kind of script would be much easier to use - just clicking buttonbar button...

Re: Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-05-07, 01:34 UTC
by nateliv
Hello, take a look here : https://winscp.net/tracker/51






deleted deleted deleted


User modified his posts some days later for to add spam links => User is banned now.

Re: Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-05-07, 16:59 UTC
by Usher
2nateliv
1. Providing links with NO description isn't really helpful, it's more like spamming.
2. There is NO mention about Linux or remote locations in this topic, the OP seems to be just a newbie.
Could you explain the reason of your posting, please?

Re: Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-05-07, 20:53 UTC
by formtapez
Anyway, the "Shortcut" solution works somehow. Thanks for the hint, Dalai.
I would be happier if only the file-location and not all other info would be copied to clipboard, but at least i can work with that.

Re: Follow symlinks in cm_CopyFullNamesToClip

Posted: 2019-05-07, 20:59 UTC
by Dalai
formtapez wrote: 2019-05-07, 20:53 UTCAnyway, the "Shortcut" solution works somehow. Thanks for the hint, Dalai.
You're welcome :).
I would be happier if only the file-location and not all other info would be copied to clipboard, but at least i can work with that.
It depends on the custom columns you've configured. If you let TC only show the file location (apart from the mandatory columns filename and extension) in the custom columns view then only this information will be copied by cm_CopyFileDetailsToClip. Removing filename and extension after pasting the clipboard contents shouldn't be much of an issue.

Regards
Dalai