Page 1 of 1
add symlink to copy dialog
Posted: 2010-05-24, 18:52 UTC
by Infector
Will be nice add option to copy dialog "make symlink" and "make hardlink" (for NTFS only)
similar
mklink /D /J E:\TC\test E:\123_test
mklink /H E:\TC\test E:\123_test
Posted: 2010-05-24, 21:14 UTC
by Sob
There's already dialog (Ctrl+Shift+F5) for creating Windows shortcuts (*.lnk files). So it'd be a good place to add it there. It'd be nicely separated from normal copying and would not confuse novice users.
Posted: 2010-05-25, 03:59 UTC
by MVV
AskParam+command line with mklink=buttonbar button
Code: Select all
Command: AskParam.exe
Parameters: /c"Make junction" /t"%T%N" /p"Target: "%P%N", link:" cmd.exe /c mklink /J %%1 %P%N
Hint: Make junction
Code: Select all
Command: AskParam.exe
Parameters: /c"Make hardlink" /t"%T%N" /p"Target: "%P%N", link:" cmd.exe /c mklink /H %%1 %P%N
Hint: Make hardlink
To hide blinking black window you may create LNK file for CMD.exe and use its path instead of CMD.exe in buttons parameters (in LNK properties set 'minimized'). So only taskbar button will blink.
Also
NTFS Links will help.
Posted: 2010-05-25, 11:19 UTC
by X-Byte
Nice solution, MVV
Nevertheless, I'd love to see this as a native Total Commander function. The shortcut dialog as suggested by Sob seems to be a good place. That dialog has too few options anyways

Posted: 2010-05-25, 20:59 UTC
by Infector
MVV
thx for help. NTFS Links work fine for me.
Sob
Ctrl+Shift+F5 create only lnk file not NTFS directory symbolic link.
Posted: 2010-05-25, 22:31 UTC
by Sob
I know, I didn't say that it can do it now. I just suggested that it may be better to extend this dialog to allow creation of all kinds of links. Rather than mixing creation of links and copying together in the same dialog.
Posted: 2010-07-10, 16:21 UTC
by VSB
Remember!!!
Junction and SymbolicLink isn't the same
Posted: 2011-01-19, 19:41 UTC
by Georgo
+1 for symlink/junction creation as a native TC functionality within the Copy/Shortcut dialog.
Posted: 2011-07-16, 07:09 UTC
by Krawhitham
MVV wrote:AskParam+command line with mklink=buttonbar button
Code: Select all
Command: AskParam.exe
Parameters: /c"Make junction" /t"%T%N" /p"Target: "%P%N", link:" cmd.exe /c mklink /J %%1 %P%N
Hint: Make junction
Code: Select all
Command: AskParam.exe
Parameters: /c"Make hardlink" /t"%T%N" /p"Target: "%P%N", link:" cmd.exe /c mklink /H %%1 %P%N
Hint: Make hardlink
To hide blinking black window you may create LNK file for CMD.exe and use its path instead of CMD.exe in buttons parameters (in LNK properties set 'minimized'). So only taskbar button will blink.
Also
NTFS Links will help.
AskParam does not seem to like a SPACE in the file or folder name
Posted: 2011-07-16, 07:15 UTC
by MVV
Just enclose name with double quotes if it contains spaces, it is a general rule. Or you may replace %%1 with "%%1" in button parameters so TC will do it for you.
+1
Posted: 2014-01-25, 15:20 UTC
by mdesign
It would be awesome! How easy can be, just press F5 then will be a make symlinks button.
+1
Posted: 2015-04-01, 18:11 UTC
by EndreB
I agree that more link-awareness (creating and copying links and junctions) would be great as it fits squarely within TC's core function set.
Posted: 2015-04-01, 18:58 UTC
by MVV
I have my NTLinks Maker bound to Alt+F6, it works just like usual copy/moves dialog and allows symlinks/hardlinks/junctions creation with elevation when needed.
Code: Select all
[em_NTLinksMaker]
cmd=""%COMMANDER_PATH%\Plugins\Content\NTLinks\NTLinksMaker.exe" /q"
param=/q- /b /r="%P" "@%WL" "%T"