|
可以自己编辑.bat:增加 或者 减少文件类型
===========================
修改后缀(添加右键).bat:
@echo off
::【删除原来菜单】
reg delete "HKCR\*\shell\修改后缀" /f >nul 2>nul
::=============================================================================================
::【主菜单:修改后缀】
reg add "HKCR\*\shell\修改后缀" /f /v "SubCommands" /t REG_SZ /d ""
reg add "HKCR\*\shell\修改后缀" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,6"
::=============================================================================================
::【次级菜单:ahk】
reg add "HKCR\*\shell\修改后缀\shell\ahk" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀\shell\ahk\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.ahk\""
::【次级菜单:bat】
reg add "HKCR\*\shell\修改后缀\shell\bat" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀\shell\bat\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.bat\""
::【次级菜单:reg】
reg add "HKCR\*\shell\修改后缀\shell\reg" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀\shell\reg\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.reg\""
::【次级菜单:txt】
reg add "HKCR\*\shell\修改后缀\shell\txt" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀\shell\txt\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.txt\""
::【次级菜单:vbs】
reg add "HKCR\*\shell\修改后缀\shell\vbs" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀\shell\vbs\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.vbs\""
::【次级菜单:wcs】
reg add "HKCR\*\shell\修改后缀\shell\wcs" /f /v "Icon" /t REG_EXPAND_SZ /d "C:\Windows\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀\shell\wcs\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.wcs\""
exit
===========================================================
删除右键菜单.bat:
@echo off
reg delete "HKCR\*\shell\修改后缀" /f >nul 2>nul
exit
|
评分
-
查看全部评分
|