Skip to content

Instantly share code, notes, and snippets.

@gulsoy83
Created October 23, 2023 12:00
Show Gist options
  • Save gulsoy83/8d1e3829d3e27158963d1624216102fd to your computer and use it in GitHub Desktop.
Save gulsoy83/8d1e3829d3e27158963d1624216102fd to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\mycmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"Icon"="\"C:\\Windows\\system32\\cmd.exe\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\mycmd\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\mycmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"Icon"="\"C:\\Windows\\system32\\cmd.exe\""
[HKEY_CLASSES_ROOT\Directory\shell\mycmd\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Drive\shell\mycmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"Icon"="\"C:\\Windows\\system32\\cmd.exe\""
[HKEY_CLASSES_ROOT\Drive\shell\mycmd\command]
@="cmd.exe /s /k pushd \"%V\""
;Library icin
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\mycmd]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
"Icon"="\"C:\\Windows\\system32\\cmd.exe\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\mycmd\command]
@="cmd.exe /s /k pushd \"%V\""
;To UNDO these, run this.
;Windows Registry Editor Version 5.00
;[-HKEY_CLASSES_ROOT\Directory\Background\shell\mycmd]
;[-HKEY_CLASSES_ROOT\Directory\shell\mycmd]
;[-HKEY_CLASSES_ROOT\Drive\shell\mycmd]
;[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\mycmd]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment