Delete temporary files in the folder Add menu

xiaoxiao2021-03-06  117

Seeing a lot of people's code has a batch file (a lot of DEL.BAT files), in fact, this is fully able to modify the registry to add the right-click menu. 1. Open the HKEY_CLASSES_ROOT / Folder / shell item 2 of the registry. New item, just name, here is Deltemp. Write the text you want to display in the menu by default. If it is empty, the item name is displayed. 3. Under the newly built item, the newly created item named Command is new, and the default inside the right is "cmd.exe / c cd"% 1 "&& del *. ~ *; *. Cfg; *. Dof; *. Ddp" 4 . carry out.

Description: The parameter / c is exited after the DOS execute command, /k is still reserved after executing the command. "&&" indicates the order of the command.

In fact, you can also add the menu in the project file DPR. The process is the same, but the location of the added is different. The registry is actually very simple, and it is very interesting. ^ _ ^

The code is a registry file. It is possible to import directly.

转载请注明原文地址:https://www.9cbs.com/read-97691.html

New Post(0)