Skip to content

Commit

Permalink
Create library.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
markgarnold committed Jul 24, 2023
1 parent 7e56bc2 commit 2634130
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions library.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@echo off
if "%2" == "" (
if exist "..\tools\%1" (
if exist "%1" (
echo "cannot create library link over existing file"
) else (
echo "mklink %1 ..\tools\%1"
mklink "%1" "..\tools\%1"
)
) else (
echo "..\tools\%1 does not exist"
)
) else (
if exist "%1\%2" (
if exist "%2" (
echo "cannot create library link over existing file"
) else (
echo "mklink %2 %1\%2"
mklink "%2" "%1\%2"
)
) else (
echo "%1\%2 does not exist"
)
)

0 comments on commit 2634130

Please sign in to comment.