无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3538|回复: 14
打印 上一主题 下一主题

想给系统加一个修改文件扩展名的vbs右键功能(已解决)

[复制链接]
1#
发表于 2023-2-17 18:49:56 | 显示全部楼层
不够的自己加,觉得多了的删除

@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

点评

лУ  详情 回复 发表于 2023-2-17 18:51
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-16 07:32

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表