Skip to content

Commit 2634130

Browse files
committed
Create library.bat
1 parent 7e56bc2 commit 2634130

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

library.bat

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@echo off
2+
if "%2" == "" (
3+
if exist "..\tools\%1" (
4+
if exist "%1" (
5+
echo "cannot create library link over existing file"
6+
) else (
7+
echo "mklink %1 ..\tools\%1"
8+
mklink "%1" "..\tools\%1"
9+
)
10+
) else (
11+
echo "..\tools\%1 does not exist"
12+
)
13+
) else (
14+
if exist "%1\%2" (
15+
if exist "%2" (
16+
echo "cannot create library link over existing file"
17+
) else (
18+
echo "mklink %2 %1\%2"
19+
mklink "%2" "%1\%2"
20+
)
21+
) else (
22+
echo "%1\%2 does not exist"
23+
)
24+
)
25+

0 commit comments

Comments
 (0)