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 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
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
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: No registered users and 29 guests