use a list
This commit is contained in:
parent
43dd0f65bf
commit
686a8eb8b4
1 changed files with 9 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||||
|
|
||||||
:: Start as administrator
|
:: Start as administrator
|
||||||
fltmc >NUL 2>&1 || (
|
fltmc >NUL 2>&1 || (
|
||||||
|
@ -14,13 +15,17 @@ ECHO Fix /usr/lib/wsl/lib/libcuda.so.1
|
||||||
ECHO Enter the folder
|
ECHO Enter the folder
|
||||||
CD \Windows\System32\lxss\lib
|
CD \Windows\System32\lxss\lib
|
||||||
|
|
||||||
|
set "files=libcuda.so libcuda.so.1"
|
||||||
|
|
||||||
ECHO Remove existing symlinks
|
ECHO Remove existing symlinks
|
||||||
DEL libcuda.so
|
for %%i in (!files!) do (
|
||||||
DEL libcuda.so.1
|
DEL %%i
|
||||||
|
)
|
||||||
|
|
||||||
:: Create new symlinks
|
:: Create new symlinks
|
||||||
MKLINK libcuda.so libcuda.so.1.1
|
for %%i in (!files!) do (
|
||||||
MKLINK libcuda.so.1 libcuda.so.1.1
|
MKLINK %%i libcuda.so.1.1
|
||||||
|
)
|
||||||
|
|
||||||
PAUSE
|
PAUSE
|
||||||
EXIT /B
|
EXIT /B
|
||||||
|
|
Loading…
Reference in a new issue