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