代码是写出来了,但是好像没有看到对应的右键菜单啊...是不是我理解错了- @echo off 2>nul 3>nul
- set reg=HKCR\AllFilesystem Objects\shellex\ContextMenuHandlers
- reg query "%reg%\Copy To"&® query "%reg%\Move To"&&(
- title delete
- reg delete "%reg%\Copy To" /f
- reg delete "%reg%\Move To" /f
- rem 两个键值都存在则删除
- )||(
- title add
- reg add "%reg%\Copy To" /v @ /d "{C2FBB630-2971-11D1-A18C-00C04FD75D13}"
- reg add "%reg%\Move To" /v @ /d "{C2FBB631- 2971-11D1-A18C-00C04FD75D13}"
- rem 两个键值中只要有一个不存在,就添加
- )
- pause
复制代码
|