26 lines
405 B
Batchfile
26 lines
405 B
Batchfile
@ECHO OFF
|
|
|
|
:: Start as administrator
|
|
fltmc >NUL 2>&1 || (
|
|
PowerShell Start -Verb RunAs '%0' 2>NUL || (
|
|
EXIT 1
|
|
)
|
|
EXIT 0
|
|
)
|
|
|
|
ECHO Fix /usr/lib/wsl/lib/libcuda.so.1
|
|
|
|
|
|
ECHO Enter the folder
|
|
CD \Windows\System32\lxss\lib
|
|
|
|
ECHO Remove existing symlinks
|
|
DEL libcuda.so
|
|
DEL libcuda.so.1
|
|
|
|
:: Create new symlinks
|
|
MKLINK libcuda.so libcuda.so.1.1
|
|
MKLINK libcuda.so.1 libcuda.so.1.1
|
|
|
|
PAUSE
|
|
EXIT /B
|