Last active
February 26, 2019 05:49
-
-
Save abakum/1b2f008f805f5be777063c28286de541 to your computer and use it in GitHub Desktop.
mklink helper for totalCMD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set T=%~1 | |
shift | |
set P=%~1 | |
if defined P goto :next | |
echo 1. Save this file to %COMMANDER_PATH%\Plugins\ | |
echo 2. DragAndDrop this file to ButtonBar of totalCMD | |
echo 3. RightClick on the new button and select Change... | |
echo 4. Set field Parameters:"%%T" "%%P" %%S | |
rem "%T" "%P" %S | |
echo 5. LeftClick on the button OK | |
pause | |
goto :EOF | |
:next | |
shift | |
set S=%~1 | |
if not defined S goto :EOF | |
set dir= | |
if exist "%P%%S%\" set dir=/D | |
mklink %dir% "%T%%S%" "%P%%S%" | |
echo mklink %dir% "%T%%S%" "%P%%S%"|clip | |
goto :next |
Author
abakum
commented
Feb 25, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment