add symlink to copy dialog

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Infector
Junior Member
Junior Member
Posts: 47
Joined: 2005-11-22, 12:48 UTC
Location: Russia

add symlink to copy dialog

Post 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
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post 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.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
User avatar
X-Byte
Member
Member
Posts: 173
Joined: 2004-11-29, 09:34 UTC
Location: Hessen, Germany

Post 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 :-D
Infector
Junior Member
Junior Member
Posts: 47
Joined: 2005-11-22, 12:48 UTC
Location: Russia

Post 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.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post 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.
VSB
Member
Member
Posts: 136
Joined: 2006-12-12, 12:02 UTC
Location: Russia

Post by *VSB »

Remember!!!
Junction and SymbolicLink isn't the same
Georgo
Junior Member
Junior Member
Posts: 4
Joined: 2009-06-06, 14:45 UTC
Location: Žilina, Slovakia

Post by *Georgo »

+1 for symlink/junction creation as a native TC functionality within the Copy/Shortcut dialog.
Krawhitham
Junior Member
Junior Member
Posts: 4
Joined: 2003-12-31, 16:33 UTC

Post 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
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
mdesign
New Member
New Member
Posts: 1
Joined: 2014-01-25, 15:18 UTC

+1

Post by *mdesign »

It would be awesome! How easy can be, just press F5 then will be a make symlinks button.
EndreB
Junior Member
Junior Member
Posts: 3
Joined: 2015-04-01, 18:04 UTC

+1

Post 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.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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"
Post Reply