内気なもんた君

時々日本語化してます

コンテキストメニューに読み取り専用を追加

ファイルやフォルダーを選択時のコンテキストメニューに読み取り専用を追加します。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ReadonlyFileAttributes]
"MUIVerb"="読み取り専用"
"SubCommands"="FileEnable;FileDisable"
"Icon"="shell32.dll,-16777"

[HKEY_CLASSES_ROOT\Directory\shell\ReadonlyFolderAttributes]
"MUIVerb"="読み取り専用"
"SubCommands"="FolderEnable;FolderDisable"
"Icon"="shell32.dll,-16715"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileEnable]
@="有効"
"Icon"="imageres.dll,-1405"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileEnable\command]
@="attrib +r \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FolderEnable]
@="有効"
"Icon"="imageres.dll,-1405"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FolderEnable\command]
@="attrib +r \"%1\" /S /D"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileDisable]
@="無効"
"Icon"="imageres.dll,-1402"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileDisable\command]
@="attrib -r \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FolderDisable]
@="無効"
"Icon"="imageres.dll,-1402"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FolderDisable\command]
@="attrib -r \"%1\" /S /D"

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

解除用のエントリ

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\ReadonlyFileAttributes]
[-HKEY_CLASSES_ROOT\Directory\shell\ReadonlyFolderAttributes]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileEnable]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FolderEnable]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FileDisable]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\FolderDisable]