25-Set the right-click shortcut menu

(1) Set the menu name and icon

Targeting:

Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\

①New → Item

OpenCmd

②Set the default string:

Open a command window here

③Click the right mouse button in the blank area on the right side of the window, select New → String Value

Icon

④Double-click the character string Icon, and set the numerical data of the character string as:

cmd.exe

(2) Set the program called by the right-click menu

Targeting:

Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmd

①New → Item

command

②Set the default string:

cmd.exe /s /k pushd “%V”

Guess you like

Origin blog.csdn.net/mmmmmCJP/article/details/112542366