Windows Registry Editor Version 5.00 ; This script only process [HKEY_CLASSES_ROOT\Directory] ; Another place is [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory] ; delete old registry(by using a "-" before the key) ; [-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd] ; [-HKEY_CLASSES_ROOT\Directory\shell\cmd] ; add new rigistry ; Folder background hit [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdHere] @="Cmd Here" "Icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdHere\command] @="cmd.exe /s /k pushd \"%V\"" ; Folder hit [HKEY_CLASSES_ROOT\Directory\shell\cmdHere] @="Cmd Here" "Icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CLASSES_ROOT\Directory\shell\cmdHere\command] @="cmd.exe /s /k pushd \"%V\""