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
|
||||
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||
|
||||
:: Start as administrator
|
||||
fltmc >NUL 2>&1 || (
|
||||
|
@ -14,13 +15,17 @@ ECHO Fix /usr/lib/wsl/lib/libcuda.so.1
|
|||
ECHO Enter the folder
|
||||
CD \Windows\System32\lxss\lib
|
||||
|
||||
set "files=libcuda.so libcuda.so.1"
|
||||
|
||||
ECHO Remove existing symlinks
|
||||
DEL libcuda.so
|
||||
DEL libcuda.so.1
|
||||
for %%i in (!files!) do (
|
||||
DEL %%i
|
||||
)
|
||||
|
||||
:: Create new symlinks
|
||||
MKLINK libcuda.so libcuda.so.1.1
|
||||
MKLINK libcuda.so.1 libcuda.so.1.1
|
||||
for %%i in (!files!) do (
|
||||
MKLINK %%i libcuda.so.1.1
|
||||
)
|
||||
|
||||
PAUSE
|
||||
EXIT /B
|
||||
|
|
Loading…
Reference in a new issue