Support for creating symbolic links, junctions etc

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vudu
Junior Member
Junior Member
Posts: 27
Joined: 2011-12-04, 19:52 UTC

Support for creating symbolic links, junctions etc

Post by *vudu »

Since Vista, Win7 etc support Unix-like links on discs (both symbolic and hard links) and Totalcmd can handle accessing them, I wonder if there will be support for creating such links.

If not via WinAPI, it can essentially be done by calling mklink command in background (invoke "mklink /?" for details) so I think it's time for Totalcmd to support this functionality.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

BTW admin rights/elevation is required in order to make symlinks. And, in order to execute mklink command you need to start cmd.exe. Anyway, you can create buttonbar button that will call mklink for you:

Code: Select all

Command: %COMMANDER_PATH%\Addons\AskParam\AskParam.exe
Parameters: /c"Create folder symlink" /t"%T%N" /p"Enter symlink path for %N:" "%%COMMANDER_PATH%%\Sudo.exe" "%%%%SystemRoot%%%%\System32\cmd.exe" /c mklink /D "%%1" %P%N
Hint: Create folder symlink
It uses focused folder name as symlink name and suggests to create symlink for focused folder in a target panel.

Buttons for file symlink, junction or hardlink are almost the same (with corresponding mklink parameters). You may find AskParam and Sudo tools in my signature.

You can also use NTFSLinks tool to create junctions and hardlinks.
Post Reply