R
R
readical2015-05-12 13:32:54
VBScript
readical, 2015-05-12 13:32:54

How to delete all contents of a folder?

How to delete all contents of a folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-05-13
@readical

You need to create a Windows reg file with the following content:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\DeleteFolderContent]
@="Delete folder contents"
[HKEY_CLASSES_ROOT\Directory\shell\DeleteFolderContent\command]
@="cmd /c \ "cd /d %1 && del /s /f /q *.*\" "
After that run it.
A line will appear in the context menu of folders with a suggestion to delete the contents of the folder.
That's all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question