Copy a folder as symbolic link

Suggestions and feature requests.
Post Reply
Message
Author
vladiva
Posts: 13
Joined: 12.03.2012, 10:17

Copy a folder as symbolic link

#1 Post by vladiva » 05.05.2014, 12:57

Often I need a possibility to create a symbolic link to a folder. It would be nice if there is a command in FC to do it.
For example it could be a parameter of the "copy"-command.

Looking forward to it.

horst.epp
Posts: 460
Joined: 15.11.2008, 20:18

Re: Copy a folder as symbolic link

#2 Post by horst.epp » 05.05.2014, 18:18

Make a favorite button with the following:

Program: %COMSPEC%
Parameter: /k if exist "%ActivDir%\%ActivItem%\*" (mklink /D %InactivDir%\%ActivSelName% %ActivSel%) else (echo The cursor must be on a FOLDER)
Icon: Whatever you like

Please note that the Parameters are in one line !

Usage:
Creates a Symlink for current folder item in active panel into passice panel.
You need Admin rights to create folder Symlinks.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
Everything Version 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 905 64-bit donor

tfejos
Posts: 1
Joined: 17.08.2016, 12:46

Re: Copy a folder as symbolic link

#3 Post by tfejos » 17.08.2016, 12:55

The following text in "Parameter:" field worked for me:

Code: Select all

/k " if exist %ActivDir%\%ActivItem%\* (mklink /D %InactivDir%\%ActivSelName% %ActivSel%) else (echo The cursor must be on a FOLDER)"

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests