This article describes the method of modifying the registry to add the empty folder command in the right-click menu. Many times, you may need to empty the contents of the folder, but you want to continue to retain the original structure in the folder. If you open each folder one by one to delete the files, it is really troublesome. In fact, we can add related commands in the right-click menu, and it will be much easier to operate later.
Open the registry editor, navigate to "HKEY_CLASSES_ROOT\\Folder\\shell", right-click and select "New → Item", create a new sub-item named "Empty folder contents", then right click To do this, continue to create a new sub-item named "command", select the "command" item, double-click "(default)" in the right pane, and modify the default data to be "cmd /c "cd /d %1 & ;& del /s /f /q *.*", where "cmd /c" means executing the command specified by the string and then terminating; "del" command is for deleting one or several files, "/s" Is to delete the specified file in all subdirectories, "/f" is to force delete the read-only file, "/q" is the so-called quiet mode, no confirmation is required when deleting. Close the registry editor after confirmation.
Now, when we right-click the folder in the Explorer, an option to “Clear Folder Contents” will pop up in the shortcut menu. After selecting, all the contents in the currently selected folder will be cleared, and at the same time Including the subordinate folder It does not pop up when the confirmation prompt box annoying, it is emphasized that this operation just to delete files, folders and the original directory structure will still be retained.
In the previous article, How is the online game account being stolen?, it is detailed how the accoun
WinXP users modify the system time, the system pops up You do not have the appropriate privilege lev
According to foreign media reports, Microsoft revealed at the X10 show this week that Windows Phone
When you take a new computer out of the box, you must think it is clean and simple. So, do you belie
How does WinXP add boot items? How to add a boot entry
Five tips for recovering Windows XP administrator passwords
Let XP use Win 2000 search interface
In the Win XP system, check the accumulated time on the Internet
Windows media player can't play this file?
Share the power on press F1 solution and cause analysis
A comprehensive understanding of Windows software restriction policies
Let the various security warnings under the xp file disappear all the way
Windows Vista system 22 problem solving method
Windows XP smart screen plugin installation window method
How to remove WinXP boot desktop bottom right corner piracy tips
After installing Vista, the blue screen solution is
How to configure HTTP load balancing system
The method of letting the DOS program run under the xp system
How to open the Win10 system group policy?
Win10 system window animation slow motion function open method
How to achieve Win8.1 press F8 to enter safe mode
Solve the problem that A and N cards play video and network TV under Win7.
Linux manual shutdown of the firewall steps
Win8 install patch KB3123862 patch after starting the screen right-click menu exception?