Method of adding “enter DOS” command in folder right-click menu

Time:2020-5-20

Then add a shortcut option of “enter DOS” in the folder right-click menu.

Click to directly enter the folder directory under DOS

Operation method:

Option A:
1. Open the registry (regedit)
2. Find the following path HKEY_ CLASSES_ ROOT\Folder\shell
3. Create a new item: cmdprompt and set the default value: “enter DOS” (without quotation marks, the text displayed on the right-click menu can be changed at will)
4. Create a new command under cmdprompt and set the default value:“ cmd.exe /K CD% L (without quotes, last% L is% L, not% 1)

Option B:

Open Notepad, copy and paste the following code:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\CmdPrompt]
@="Enter DOS command line"

[HKEY_CLASSES_ROOT\Directory\shell\CmdPrompt\Command]
@="cmd.exe /k cd %l"

Save as dos.reg ”, and then double-click the file and agree to import it into the registry.