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.
Copy a folder as symbolic link
Re: Copy a folder as symbolic link
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.
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, Version 24H2 (OS Build 26100.4484)
Everything Version 1.5.0.1396a (x64), Everything Toolbar 1.5.5, Listary Pro 6.3.2.88
FreeCommander XE 2025 Build 933 64-bit donor
Everything Version 1.5.0.1396a (x64), Everything Toolbar 1.5.5, Listary Pro 6.3.2.88
FreeCommander XE 2025 Build 933 64-bit donor
Re: Copy a folder as symbolic link
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)"
Who is online
Users browsing this forum: Bing [Bot] and 10 guests