Page 1 of 1
Support for creating symbolic links, junctions etc
Posted: 2012-04-14, 14:05 UTC
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.
Posted: 2012-04-14, 16:17 UTC
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.