TC for to create Soft/Junction Links?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
harrismail
Member
Member
Posts: 105
Joined: 2007-02-07, 07:41 UTC

TC for to create Soft/Junction Links?

Post by *harrismail »

Hi all,

maybe this has been asked before but isn't Total Commander the perfect tool for creating soft/junction links?
It's a real pain having to open a command prompt and getting the perfect syntax to create a link from one directory to another.
Maybe one for a future update Christian?
Steve
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Soft/Junction Links?

Post by *petermad »

2harrismail

You could check out my Extended Menus (see my signatiure) - it has options under "Misc" to make various junctions, symlinks and hardlinks (using mklink) - https://madsenworld.dk/tcmd/miscmenu.png
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
harrismail
Member
Member
Posts: 105
Joined: 2007-02-07, 07:41 UTC

Re: Soft/Junction Links?

Post by *harrismail »

Now that looks very interesting - I shall give it a whirl.

Thanks!
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC for to create Soft/Junction Links?

Post by *Dalai »

There is also NTFSLinks and NTLinksMaker which can be put on a button or TC's start menu. And there are NTLinks and NL_Info to view information about junctions and symlinks, e.g. in custom columns.

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

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
harrismail
Member
Member
Posts: 105
Joined: 2007-02-07, 07:41 UTC

Re: TC for to create Soft/Junction Links?

Post by *harrismail »

Brilliant - many thanks to both of you, that's sorted things out nicely.
Regards
Steve
User avatar
Mjolnir
Member
Member
Posts: 131
Joined: 2005-10-08, 21:03 UTC

Re: TC for to create Soft/Junction Links?

Post by *Mjolnir »

Using @petermad menu (clever called commands), I've create 2 buttons.
On a selected file/folder (under cursor) :
* 1st button to create either folder junction or file hardlink (no Admin rights needed) on opposite panel
* 2nd button to create folder/file Symlink (needs Admin rights) on opposite panel

Note: that I've added a ".hrd/.jnk/.sym" extension to the "link" created (my way to quickly identify it)
Note: there is no check whether the source or the destination exists...

Make Folder Junction or File Hardlink in Opposite Panel (Not on Network/No Admin rights):

Code: Select all

TOTALCMD#BAR#DATA
%COMSPEC% /C
if not exist %P%N\* (mklink /H "%T%O.hrd.%E" %P%N) else (mklink /J %T%N.jnk %P%N)
%COMMANDER_EXE%,12
Make Folder Junction or File Hardlink in Opposite Panel (Not on Network/No Admin rights)
%SYSTEMDRIVE%\
1
-1
Make Folder or File Symlink in Opposite Panel (needs Admin rights):

Code: Select all

TOTALCMD#BAR#DATA
*%COMSPEC% /C
if not exist %P%N\* (mklink "%T%O.sym.%E" %P%N) else (mklink /D %T%N.sym %P%N)
%COMMANDER_EXE%,12
Make Folder or File Symlink in Opposite Panel (needs Admin rights)
%SYSTEMDRIVE%\
1
-1
Longue vie a TC... déjà + de 20 ans de bons et loyaux services chez moi !
Post Reply