use a list

This commit is contained in:
Mylloon 2023-04-23 12:28:15 +02:00
parent 43dd0f65bf
commit 686a8eb8b4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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