@ECHO OFF & PUSHD "%~DP0" && CD /D "%~DP0"
IF EXIST "%PUBLIC%" >NUL 2>&1 REG QUERY "HKU\S-1-5-19"
IF NOT %ERRORLEVEL% EQU 0 (
IF EXIST "%PUBLIC%" powershell.exe -windowstyle hidden -noprofile "Start-Process '%~dpnx0' -Verb RunAs"
EXIT
)
ECHO.&ECHO 1、添加资源管理器右键项
ECHO.&ECHO 2、删除资源管理器右键项
ECHO:    
set /p a=输入数字按回车：
If Not "%a%"=="" Set a=%a:~0,1%
If "%a%"=="1" Goto Add
If "%a%"=="2" Goto Remove
CLS & ECHO 输入无效，重新输入！     老殁 www.Laomo.me 免费分享软件10年
PAUSE >NUL & CLS & GOTO Menu

:Add

regsvr32 /s wodFtpDLX64.dll
regsvr32 /s wodCertificate64.dll

reg add "HKCR\*\shellex\ContextMenuHandlers\UltraCompare" /f /ve /d "{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" >NUL 2>NUL
reg add "HKCR\CLSID\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}\InProcServer32" /f /ve /d "%~dp0UC_ShellExt64.dll" >NUL 2>NUL
reg add "HKCR\CLSID\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" >NUL 2>NUL
reg add "HKCR\Directory\shellex\ContextMenuHandlers\UltraCompare" /f /ve /d "{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" >NUL 2>NUL

reg add "HKCU\Software\Directory\shellex\ContextMenuHandlers\UltraCompare" /f /ve /d "{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" >NUL 2>NUL
reg add "HKCU\Software\Classes\*\shellex\ContextMenuHandlers\UltraCompare" /f /ve /d "{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" >NUL 2>NUL
reg add "HKCU\Software\Classes\CLSID\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}\InProcServer32" /f /ve /d "%~dp0UC_ShellExt64.dll" >NUL 2>NUL
reg add "HKCU\Software\Classes\CLSID\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" >NUL 2>NUL
reg add "HKCU\Software\Classes\Directory\shellex\ContextMenuHandlers\UltraCompare" /f /ve /d "{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" >NUL 2>NUL

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\uc.exe" /f /v "Path" /d "%~dp0\" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\uc.exe" /f /ve /d "%~dp0uc.exe" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs"  /f /v "%~dp0wodFtpDLX64.dll" /t REG_DWORD /d "1" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs"  /f /v "%~dp0wodCertificate64.dll" /t REG_DWORD /d "1" >NUL 2>NUL

CLS&ECHO.&ECHO 完成！    老殁 www.Laomo.me 免费分享软件10年        &PAUSE>NUL &GOTO MENU

:Remove

regsvr32 /s /u wodFtpDLX64.dll
regsvr32 /s /u wodCertificate64.dll

reg delete  "HKCR\*\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCR\*\shellex\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" /f >NUL 2>NUL
reg delete  "HKCR\Directory\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL

reg delete  "HKCU\Software\Directory\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCU\Software\Classes\*\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCU\Software\Classes\CLSID\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" /f >NUL 2>NUL
reg delete  "HKCU\Software\Classes\Directory\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL

reg delete  "HKLM\SOFTWARE\IDM Computer Solutions\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCU\Software\IDM Computer Solutions\UltraCompare Pro" /f >NUL 2>NUL

reg delete  "HKCR\*\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCR\*\shellex\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" /f >NUL 2>NUL
reg delete  "HKCR\Directory\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL

reg delete  "HKCU\Software\Directory\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCU\Software\Classes\*\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL
reg delete  "HKCU\Software\Classes\CLSID\{C3B42C03-C1B7-4c1a-B384-BBAE19646333}" /f >NUL 2>NUL
reg delete  "HKCU\Software\Classes\Directory\shellex\ContextMenuHandlers\UltraCompare" /f >NUL 2>NUL

CLS&ECHO.&ECHO 完成！       老殁 www.Laomo.me 免费分享软件10年         &PAUSE>NUL &GOTO MENU