Page 1 of 1
Copy a folder as symbolic link
Posted: 05.05.2014, 12:57
by vladiva
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.
Re: Copy a folder as symbolic link
Posted: 05.05.2014, 18:18
by horst.epp
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.
Re: Copy a folder as symbolic link
Posted: 17.08.2016, 12:55
by tfejos
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)"