|
你可以改成下面的代码试试,主要原因是掉了一个lnkfile,这个必须单独添加进去
- rem 文件夹右键菜单
- reg delete "HKCR\Directory\shell\超级菜单" /f
- reg delete "HKCR\Directory\shell\SuperMenu" /f
- reg add "HKCR\Directory\shell\SuperMenu" /v "Icon" /d "shell32.dll,-16748" /f
- reg add "HKCR\Directory\shell\SuperMenu" /v "MUIVerb" /d "超级菜单(&X)" /f
- reg add "HKCR\Directory\shell\SuperMenu" /v "SeparatorAfter" /d "1" /f
- reg add "HKCR\Directory\shell\SuperMenu" /v "SubCommands" /v "SubCommands" /d "X.CopyPathD;X.CopyTo;X.MoveTo;X.ACmd;Windows.RecycleBin.Empty;X.NSud;X.IobitUnlocker" /f
- rem 所有文件右键菜单
- reg delete "HKCR\*\Shell\超级菜单" /f
- reg delete "HKCR\*\Shell\SuperMenu" /f
- reg add "HKCR\*\Shell\SuperMenu" /v "Icon" /d "shell32.dll,-16748" /f
- reg add "HKCR\*\Shell\SuperMenu" /v "MUIVerb" /d "超级菜单(&X)" /f
- reg add "HKCR\*\Shell\SuperMenu" /v "SeparatorAfter" /d "1" /f
- reg add "HKCR\*\Shell\SuperMenu" /v "SubCommands" /d "X.CopyPath;X.CopyTo;X.MoveTo;X.Notepad;Windows.RecycleBin.Empty;X.NSudo;X.IobitUnlocker" /f
- rem 快捷方式右键菜单
- reg delete "HKCR\lnkfile\shell\超级菜单" /f
- reg delete "HKCR\lnkfile\shell\SuperMenu" /f
- reg add "HKCR\lnkfile\shell\SuperMenu" /v "Icon" /d "shell32.dll,-16748" /f
- reg add "HKCR\lnkfile\shell\SuperMenu" /v "MUIVerb" /d "超级菜单(&X)" /f
- reg add "HKCR\lnkfile\shell\SuperMenu" /v "SeparatorAfter" /d "1" /f
- reg add "HKCR\lnkfile\shell\SuperMenu" /v "SubCommands" /d "X.CopyPath;X.CopyTo;X.MoveTo;X.Notepad;Windows.RecycleBin.Empty;X.NSudo;X.IobitUnlocker" /f
- rem 超强力删除
- reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSudo" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSudo" /v "Icon" /d "%~dp0DDL.exe" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSudo" /v "MUIVerb" /d "超强力删除" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSudo\Command" /ve /d "%~dp0NSudo.exe -U:T -P:E %~dp0DDL.exe "%%L"" /f
- reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSud" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSud" /v "Icon" /d "%~dp0DDL.exe" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSud" /v "MUIVerb" /d "超强力删除" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\X.NSud\Command" /ve /d "%~dp0NSudo.exe -U:T -P:E %~dp0DDL.exe "%%L"
复制代码
|
|