Open Command Prompt from the Right Click Menu

Ok, I borrowed this one from somewhere and modified it to fit my needs. Half the time I forget it’s there, but sometimes I need a command prompt window in a folder thats nested a few levels deep. Instead of typing cd to change to every child folder, I found this registry file which allows you to right click on almost any folder or file and open a command prompt from that location. The right click menu will say, “Selected Folder Prompt” or “..Parent Folder Prompt” depending on which object you click.

Place the code inside of a *.REG file and double click it to add the functionality to the registry. You can also uncomment (remove the semicolons) the last 3 lines to remove the the entries from the right click menu.

Windows Registry Editor Version 5.00

; This script creates context menu items that allow users to click on either a file
; or folder and open up a command prompt from either the current or parent folder

@=".\Selected Folder Prompt"

@="cmd.exe /k pushd %L"

@="..\Parent Folder Prompt"

@="cmd.exe /k "For %%a in (%cd% cls) do %%a""


@="..\Parent Folder Prompt"

@="cmd.exe /k "For %%a in (%cd% cls) do %%a""

; To remove the script
#microsoft #registry #windows