PC_Windows

[Windows11 Context menu] 우클릭 메뉴 되돌리기 + 터미널 삭제

ggamanTaya 2022. 10. 21. 19:43

우클릭 되돌리니  쓰지도 않는 터미널이 거슬림

메뉴 되돌리게에 추가

Windows11 Context menu.bat
0.00MB

 

 


누구나 만들수 있는 배치파일 소스 입니다.

똥손이라 난잡함 


@echo off

echo.
echo.
title Windows 11 Context menu

:start
echo Windows 11 Change the Context menu.
echo.
echo.
echo ========================================================
echo.
echo  1. Change the right-click menu.
echo.
echo  2. Restore the right-click menu.
echo.
echo  3. Remove Open in Windows Terminal context menu.
echo.
echo  4. Add Open in Windows Terminal context menu.
echo.
echo  5. Exit
echo.
echo ========================================================

:LOOP
set /p NB= Select number :

if not "%NB%" gtr "0" goto LOOP
if not "%NB%" leq "5" goto LOOP

goto %NB%

:1
echo.
echo.
echo  Change the right-click menu.
echo.
echo.

reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

goto reset


:2
echo.
echo.
echo  Restore the right-click menu.
echo.
echo.
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

goto reset

:3
echo.
echo.
echo  Remove Open in Windows Terminal context menu.
echo.
echo.
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{9F156763-7844-4DC4-B2B1-901F640F5155}"
goto reset

:4
echo.
echo.
echo  Add Open in Windows Terminal context menu.
echo.
echo.
reg.exe delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{9F156763-7844-4DC4-B2B1-901F640F5155}" /f

goto reset

:5
exit


:reset

taskkill /f /IM explorer.exe

start explorer.exe

goto start