|
不够的自己加,觉得多了的删除
@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 "%SystemRoot%\system32\user32.dll,6"
reg add "HKCR\*\shell\修改后缀名\shell\bat" /f /v "Icon" /t REG_EXPAND_SZ /d "%SystemRoot%\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀名\shell\bat" /f /v "MUIVerb" /t REG_SZ /d "bat"
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 add "HKCR\*\shell\修改后缀名\shell\cmd" /f /v "Icon" /t REG_EXPAND_SZ /d "%SystemRoot%\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀名\shell\cmd" /f /v "MUIVerb" /t REG_SZ /d "cmd"
reg add "HKCR\*\shell\修改后缀名\shell\cmd\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.cmd\""
reg add "HKCR\*\shell\修改后缀名\shell\reg" /f /v "Icon" /t REG_EXPAND_SZ /d "%SystemRoot%\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀名\shell\reg" /f /v "MUIVerb" /t REG_SZ /d "reg"
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\""
reg add "HKCR\*\shell\修改后缀名\shell\ini" /f /v "Icon" /t REG_EXPAND_SZ /d "%SystemRoot%\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀名\shell\ini" /f /v "MUIVerb" /t REG_SZ /d "ini"
reg add "HKCR\*\shell\修改后缀名\shell\ini\command" /f /ve /t REG_SZ /d "cmd /c for /f \"delims=\" %%%%a in (\"%%1\") do rename \"%%%%a\" \"%%%%~na.ini\""
reg add "HKCR\*\shell\修改后缀名\shell\wcs" /f /v "Icon" /t REG_EXPAND_SZ /d "%SystemRoot%\system32\user32.dll,4"
reg add "HKCR\*\shell\修改后缀名\shell\wcs" /f /v "MUIVerb" /t REG_SZ /d "wcs"
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 |
|