Git技巧:右键菜单怎么去除
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git技巧:右键菜单怎么去除相关的知识,希望对你有一定的参考价值。
检查显卡驱动是否有安装好,如果已经安装好了,在电脑桌面的“计算机”图标上右键键盘,会出现一个菜单选项,点击“属性”进入,再进入后选择左侧的“控制面板主页”
进入”控制面板“中后选择”NVIDIA 控制面板“进入,进入英伟达控制面板中后,点击左上面的”桌面“会弹出一个选项.直接点击”添加桌面上下文菜单“打勾后(不需要就去掉勾),关闭再回到桌面,在桌面空白地方右击鼠标,就会看到NVIDIA控制面板 参考技术A 说下解决方法:
1.Win+R 输入 cmd
2.如果你是64位系统就这么来输入命令:(扩充里面有指令和32位系统的解决)
3.成果~
扩充:(32位的同志是不是吓一跳?O(∩_∩)O~一样解决,就是目录改下~)
64目录地址: "C:\Program Files (x86)\Git\git-cheetah"
32目录地址:"C:\Program Files\Git\git-cheetah"
指令:regsvr32 /u git_shell_ext.dll
git绿色版添加右键菜单
win10测试通过,win7未知
git
@Echo Off
title Git绿色版右键菜单管理bat工具
SetLocal EnableDelayedExpansion
SET SourceFile=git-bash.exe
if exist !cd!\\!SourceFile! (
echo 1.安装Git右键菜单
echo 2.卸载Git右键菜单
echo 0.退出
echo=
echo=
echo=
:start
Set /p u=请输入数字并按Enter确定:
IF !u!==1 (
@echo off
::git_gui
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_gui" /d "Git &GUI Here" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_gui" /v "Icon" /d "!cd!\\cmd\\git-gui.exe" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_gui\\command" /d "\\"!cd!\\cmd\\git-gui.exe\\" \\"--working-dir\\" \\"%%v.\\"" /t "REG_SZ" /f
::git_shell
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_shell" /d "Git Ba&sh Here" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_shell" /v "Icon" /d "!cd!\\git-bash.exe" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_shell\\command" /d "\\"!cd!\\git-bash.exe\\" \\"--cd=%%v.\\"" /t "REG_SZ" /f
::git_gui
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_gui" /d "Git &GUI Here" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_gui" /v "Icon" /d "!cd!\\cmd\\git-gui.exe" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_gui\\command" /d "\\"!cd!\\cmd\\git-gui.exe\\" \\"--working-dir\\" \\"%%1\\"" /t "REG_SZ" /f
::git_shell
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_shell" /d "Git Ba&sh Here" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_shell" /v "Icon" /d "!cd!\\git-bash.exe" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_shell\\command" /d "\\"!cd!\\git-bash.exe\\" \\"--cd=%%1\\"" /t "REG_SZ" /f
set u=<nul
echo=
echo install done.
goto start
) ELSE IF !u!==2 (
@echo off
reg delete>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_gui" /f
reg delete>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\background\\shell\\git_shell" /f
reg delete>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_gui" /f
reg delete>nul 2>nul "HKEY_CLASSES_ROOT\\directory\\shell\\git_shell" /f
set u=<nul
echo=
echo uninstall done.
goto start
) ELSE IF !u!==0 (
exit
) ELSE (
goto start
)
) else (
set /p=请把该脚本放置在!SourceFile!所在目录下运行...<nul&pause;>nul
)
endlocal
Notepad3.bat
@Echo Off
title Notepad3绿色版右键菜单管理bat工具
SetLocal EnableDelayedExpansion
SET SourceFile=Notepad3.exe
SET RightMenuName=!SourceFile!打开
if exist !cd!\\!SourceFile! (
echo 1.安装Notepad3右键菜单
echo 2.卸载Notepad3右键菜单
echo 0.退出
echo=
echo=
echo=
:start
Set /p u=请输入数字并按Enter确定:
IF !u!==1 (
@echo off
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\*\\shell\\!RightMenuName!" /v "Icon" /d "!cd!\\!SourceFile!" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\*\\shell\\!RightMenuName!" /v "MultiSelectModel" /d "Single" /t "REG_SZ" /f
reg add>nul 2>nul "HKEY_CLASSES_ROOT\\*\\shell\\!RightMenuName!\\Command" /d "\\"!cd!\\!SourceFile!\\" \\"%%1\\"" /t "REG_SZ" /f
set u=<nul
echo=
echo install done.
goto start
) ELSE IF !u!==2 (
@echo off
reg delete>nul 2>nul "HKEY_CLASSES_ROOT\\*\\shell\\!RightMenuName!" /f
set u=<nul
echo=
echo uninstall done.
goto start
) ELSE IF !u!==0 (
exit
) ELSE (
goto start
)
) else (
set /p=请把该脚本放置在!SourceFile!所在目录下运行...<nul&pause;>nul
)
endlocal
以上是关于Git技巧:右键菜单怎么去除的主要内容,如果未能解决你的问题,请参考以下文章