Symbolic Links

English support forum

Moderators: Hacker, petermad, Stefan2, white

D4KiR
Junior Member
Junior Member
Posts: 3
Joined: 2023-09-19, 10:16 UTC

Symbolic Links

Post by *D4KiR »

in "double commander" you can easy create symbolic links
Image: https://i.imgur.com/DxKOCga.png

is it possible to add this function to total commander?

this works on folders/files
User avatar
petermad
Power Member
Power Member
Posts: 13929
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Symbolic Links

Post by *petermad »

2D4KiR

You can make em_commands for it like I do in my Extended Menus (see signature) - https://tcmd.madsenworld.dk/creatrelinks.png

You can also use the em_commands in TC's Start Menu or Directory hotlist or in the Button Bars.

Here are my em_commands for link creation: https://tcmd.madsenworld.dk/creatrelinks.zip which you can put in your usercmd.ini file.
License #524 (1994)
Danish Total Commander Translator
TC 11.01 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1356a (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6120
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Symbolic Links

Post by *Horst.Epp »

You can use the plugin NTLinksMaker.
It supports all types of links.
https://totalcmd.net/plugring/NTLinksMaker.html
An update version is here
https://disk.yandex.ru/d/zR7YwaVxtzo80Q

My button for it

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\PLUGINS\NTLinksMaker\NTLinksMaker64.exe
/q- /b /l=0 /r="%P" "@%WL" "%T"
%COMMANDER_PATH%\PLUGINS\NTLinksMaker\NTLinksMaker64.exe
NTLinksMaker

0
-1
Last edited by Horst.Epp on 2023-09-19, 12:52 UTC, edited 3 times in total.
Windows 11 Home x64 Version 22H2 (OS Build 22621.2361)
TC 11.01 x64 / x86
Everything 1.5.0.1356a (x64), Everything Toolbar 1.2, Listary Pro 6.3.0.51
QAP 11.6.2.3 x64
User avatar
petermad
Power Member
Power Member
Posts: 13929
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Symbolic Links

Post by *petermad »

NTLinksMaker is not really a plugin, it is a standalone program. There is a newer version here: https://yadi.sk/d/zR7YwaVxtzo80Q

NTLinks http://totalcmd.net/plugring/NTLinks.html is the content plugin for showing infor about NTFS links.
License #524 (1994)
Danish Total Commander Translator
TC 11.01 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1356a (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
D4KiR
Junior Member
Junior Member
Posts: 3
Joined: 2023-09-19, 10:16 UTC

Re: Symbolic Links

Post by *D4KiR »

petermad wrote: 2023-09-19, 10:54 UTC 2D4KiR

You can make em_commands for it like I do in my Extended Menus (see signature) - https://tcmd.madsenworld.dk/creatrelinks.png

You can also use the em_commands in TC's Start Menu or Directory hotlist or in the Button Bars.

Here are my em_commands for link creation: https://tcmd.madsenworld.dk/creatrelinks.zip which you can put in your usercmd.ini file.
this is without plugins?
User avatar
petermad
Power Member
Power Member
Posts: 13929
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Symbolic Links

Post by *petermad »

2D4KiR
D4KiR wrote:this is without plugins?
Yes, it uses the mklink.exe program that comes with your Windows.
License #524 (1994)
Danish Total Commander Translator
TC 11.01 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1356a (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6120
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Symbolic Links

Post by *Horst.Epp »

petermad wrote: 2023-09-19, 11:02 UTC NTLinksMaker is not really a plugin, it is a standalone program. There is a newer version here: https://yadi.sk/d/zR7YwaVxtzo80Q

NTLinks http://totalcmd.net/plugring/NTLinks.html is the content plugin for showing infor about NTFS links.
I know.
Thanks for the update link.
I will change the link above.
Windows 11 Home x64 Version 22H2 (OS Build 22621.2361)
TC 11.01 x64 / x86
Everything 1.5.0.1356a (x64), Everything Toolbar 1.2, Listary Pro 6.3.0.51
QAP 11.6.2.3 x64
Fla$her
Power Member
Power Member
Posts: 1572
Joined: 2020-01-18, 04:03 UTC

Re: Symbolic Links

Post by *Fla$her »

D4KiR wrote: 2023-09-19, 10:19 UTC is it possible to add this function to total commander?
>>>
ghisler(Author) wrote: 2023-05-01, 14:34 UTC cm_HardLink, cm_SymLink -> I'm reluctant to add these, they can can cause HUGE troubles in the hands of a not so cautious user
ghisler(Author) wrote: 2023-05-02, 13:53 UTC
I'm just commenting on your concerns about cm_HardLink and cm_SymLink
These are also dangerous, because the files would look like they are duplicates, and would even be found by duplicate file finders.

Horst.Epp wrote: 2023-09-19, 10:58 UTC My button for it

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\PLUGINS\NTLinksMaker\NTLinksMaker64.exe
/q- /b /l=1 /r="%P" "@%WL" "%T"
%COMMANDER_PATH%\PLUGINS\NTLinksMaker\NTLinksMaker64.exe
NTLinksMaker
Why is /l=1 here? Here he needs /s or /s?.
Overquoting is evil! 👎
D4KiR
Junior Member
Junior Member
Posts: 3
Joined: 2023-09-19, 10:16 UTC

Re: Symbolic Links

Post by *D4KiR »

"cm_HardLink, cm_SymLink -> I'm reluctant to add these, they can can cause HUGE troubles in the hands of a not so cautious user"

maybe as an option for advanced users :P
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6120
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Symbolic Links

Post by *Horst.Epp »

Fla$her wrote: 2023-09-19, 11:44 UTC [
Horst.Epp wrote: 2023-09-19, 10:58 UTC My button for it

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\PLUGINS\NTLinksMaker\NTLinksMaker64.exe
/q- /b /l=1 /r="%P" "@%WL" "%T"
%COMMANDER_PATH%\PLUGINS\NTLinksMaker\NTLinksMaker64.exe
NTLinksMaker
Why is /l=1 here? Here he needs /s or /s?.
I changed it to /l=0
Windows 11 Home x64 Version 22H2 (OS Build 22621.2361)
TC 11.01 x64 / x86
Everything 1.5.0.1356a (x64), Everything Toolbar 1.2, Listary Pro 6.3.0.51
QAP 11.6.2.3 x64
User avatar
Dalai
Power Member
Power Member
Posts: 8880
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Symbolic Links

Post by *Dalai »

2Horst.Epp
2petermad
Please be aware that this newer version has some bugs viewtopic.php?p=425293#p425293 which its author MVV already confirmed. If one needs to create such specific links (like the ones I've shown in my bug reports) it's better to use the older version from totalcmd.net to work around these bugs.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 1572
Joined: 2020-01-18, 04:03 UTC

Re: Symbolic Links

Post by *Fla$her »

2Horst.Epp
However, you didn't take into account the request for a symlink. By default, hard ones are created. There is also no point in /q-. On the contrary, it makes sense in the silent mode with /q.

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\NTLinksMaker\NTLinksMaker%ARCH64%.exe
/b /q /s /r="%P" "@%WL" "%T*"
Utils\NTLinksMaker\NTLinksMaker.exe
Create symbolic links in another panel
Autorun: %ARCH64% returns an empty value for 32-bit systems or 64 for 64-bit systems.

Code: Select all

If %AUTORUN_OSARCH% = 64 Then
  SetEnv ARCH64 64
Else
  SetEnv ARCH64
EndIf
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 13929
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Symbolic Links

Post by *petermad »

Dalai wrote: 2023-09-19, 13:21 UTC 2Horst.Epp
2petermad
Please be aware that this newer version has some bugs viewtopic.php?p=425293#p425293 which its author MVV already confirmed. If one needs to create such specific links (like the ones I've shown in my bug reports) it's better to use the older version from totalcmd.net to work around these bugs.

Regards
Dalai
Thanks - I also have version 1.4.2.430 and 1.4.2.434 - are they also buggy?
License #524 (1994)
Danish Total Commander Translator
TC 11.01 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1356a (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6120
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Symbolic Links

Post by *Horst.Epp »

Fla$her wrote: 2023-09-19, 14:26 UTC 2Horst.Epp
However, you didn't take into account the request for a symlink. By default, hard ones are created. There is also no point in /q-. On the contrary, it makes sense in the silent mode with /q.

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\NTLinksMaker\NTLinksMaker%ARCH64%.exe
/b /q /s /r="%P" "@%WL" "%T*"
Utils\NTLinksMaker\NTLinksMaker.exe
Create symbolic links in another panel
I like to have Junctions for folders and Hard links for files.
That has the big benefit of not asking for permissions, which are asked for using Symlinks.
Windows 11 Home x64 Version 22H2 (OS Build 22621.2361)
TC 11.01 x64 / x86
Everything 1.5.0.1356a (x64), Everything Toolbar 1.2, Listary Pro 6.3.0.51
QAP 11.6.2.3 x64
Fla$her
Power Member
Power Member
Posts: 1572
Joined: 2020-01-18, 04:03 UTC

Re: Symbolic Links

Post by *Fla$her »

Horst.Epp wrote: 2023-09-19, 15:22 UTC I like to have Junctions for folders and Hard links for files.
I also use hard links on the same volumes, so I use /s?. But all this reasoning doesn't concern the request.
Overquoting is evil! 👎
Post Reply