https://www.yanning.wang/archives/299.html

 

一、远程桌面崩溃

二、Office办公软件中“开始页”变成“Home”

 

@echo off
title 恢复系统

REM 变量初始化
rem CSR路径
set CSRPath=""

rem 自动发现WinRar安装路径
for /f "tokens=2*" %%i in (\'reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Cambridge Silicon Radio\Harmony\Default"^|findstr InstallDir\') do set CSRPath=%%j

if "%CSRPath%"=="" (
    echo.
    echo 自动发现CSR蓝牙驱动安装路径失败!
    echo 按任意键退出...
    Pause>nul
    exit
) else (
    echo 自动发现CSR蓝牙驱动安装路径成功!
    echo 安装路径为:
    echo %CSRPath%
)

echo.
echo 1.将BLEtokenCredentialProvider.dll重命名为BLEtokenCredentialProvider.dll.old
rename "%CSRPath%BLEtokenCredentialProvider.dll" BLEtokenCredentialProvider.dll.old

echo.
echo 2.反注册CSR Office组件
RegSvr32.exe /u "%CSRPath%CsrOfficePlugin.dll"
RegSvr32.exe /u "%CSRPath%CsrOfficePluginPS.dll"

echo.
echo 已完成,按任意键结束!
pause>nul

版权声明:本文为runliuv原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/runliuv/p/9810736.html