Method 1:
1. In resource manager, choose tools> Options> file type
2. List Selection: folder
3. Advanced --> New
4. Operation: Enter the display name, for example, DoS
Application executing the operation: cmd.exe/k cd/d % L
OK
Note: Do not set it as the default value so that it will be opened by default using cmd.
Problem: if the operation fails, the deletion method cannot be found:
Open the registry and delete \ hkey_classes_root \ directory \ shell \ to enter DoS (enter dos, maybe your own name ).
Method 2:
Note: If you are not familiar with the Registry, back up the Registry first.
1. Open the Registry (Regedit)
2. Find the following path: hkey_classes_root \ Folder \ shell
3. New item: Export prompt and set the default value: "Enter dos" (here is the text on the menu)
4. Create a new command under cmdprompt and set the default value: cmd.exe/K cd % L
Close the registry and right-click the folder to view it.
Method 3:
Open notepad and copy and paste the following code:
Windows Registry Editor Version 5.00
[Hkey_classes_root \ directory \ shell \ cmd]
@ = "Enter dos"
[Hkey_classes_root \ directory \ shell \ cmd \ command]
@ = "Cmd.exe/k \" cd % L \""
[Hkey_classes_root \ drive \ shell \ cmd]
@ = "Enter dos"
[Hkey_classes_root \ drive \ shell \ cmd \ command]
@ = "Cmd.exe/k \" cd % L \""
After that, save it as "Dos. Reg", double-click the file, and agree to import it to the Registry.
Use: Right-click the directory you want to open, such as c: \ windows, and select "Enter dos ".