Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Shell\Add comment to folder]
@=""
"Position"="Bottom"
"SeparatorBefore"=""
"SeparatorAfter"=""
[HKEY_CLASSES_ROOT\Directory\Shell\Add comment to folder\Command]
@="powershell -Command \"& {sl '%V';$f='desktop.ini';$Txt = Try{(gc $f -raw -ea stop) -replace '(?s)\\s*\\[\\.\\w+]\\s',''}Catch{};([Regex]::UnEscape('[.ShellClassInfo]\\nInfoTip={0}\\n')+$Txt) -f (Read-Host Comment) | sc $f -force;(gi .).Attributes = (gi .).Attributes -bor 1;(gi $f).Attributes = (gi $f).Attributes -bor 4}\""
[HKEY_CLASSES_ROOT\Directory\Background\Shell\Add comment to folder]
@=""
"Position"="Bottom"
"SeparatorBefore"=""
"SeparatorAfter"=""
[HKEY_CLASSES_ROOT\Directory\Background\Shell\Add comment to folder\Command]
@="powershell -Command \"& {sl '%V';$f='desktop.ini';$Txt = Try{(gc $f -raw -ea stop) -replace '(?s)\\s*\\[\\.\\w+]\\s',''}Catch{};([Regex]::UnEscape('[.ShellClassInfo]\\nInfoTip={0}\\n')+$Txt) -f (Read-Host Comment) | sc $f -force;(gi .).Attributes = (gi .).Attributes -bor 1;(gi $f).Attributes = (gi $f).Attributes -bor 4}\""