Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC技巧如何删除文件夹内容,同时保持树状结构的文件夹在Windows XP的PC

Have you came across a scenario whereby you want to delete all files in main and sub folders while maintaining folder tree structure?你碰到的情况下要删除所有文件的主要和子文件夹,同时保持文件夹树状结构? By default, Windows doesn’t provide such a feature and you need to do it in a very manual way, by going to each of the folders and highlight all the files you want to delete followed by a Delete button pressed.默认情况下, Windows并不提供这样的功能,你需要做的一个非常手动的方式,进入每个文件夹中,并强调所有文件要删除之后,删除按钮按下。 You need to repeat the same action by going to each of the sub folders until all files have been deleted.您需要重复同样的行动,将每个子文件夹,直到所有文件已被删除。 All these steps could be very time consuming and painful especially when the folder tree structure becomes more complicated.所有这些步骤可能是非常耗时和痛苦尤其是当该文件夹树状结构变得更加复杂。 Now with this simple utility, you can delete all files in main and its sub folders while maintaining the folder tree structure with only few steps.现在,这个简单实用,您可以删除所有文件的主要及其子文件夹,同时保持文件夹树状结构,只有几个步骤。



This feature can be enabled in right click folder menu by editing the registry key.这一功能可启用文件夹右键菜单中的编辑注册表的关键。 Just follow instructions as mentioned below and you are done:只要按照指示下文提到的,你这样做:

1) Go to Start -> Run, then type ‘regedit’ and press enter 1 )移至开始“ ->运行,然后键入'注册表' ,然后按E NTER
2) Locate to HKEY_CLASSES_ROOT\Directory\shell 2 )查找到HKEY_CLASSES_ROOT \目录\壳
3) Right click on ‘shell’ folder and choose New -> Key, name the new sub key as ‘Empty Folder Contents’. 3 )右击'壳'的文件夹,并选择新-> “的关键,命名新的子键为'空文件夹目录。
4) Right click on ‘Empty Folder Contents’ and choose New -> Key, name the sub key as ‘Command’. 4 )右键点击'空文件夹目录,并选择新-> “关键词,名称的子键为'指挥' 。
5) Under the ‘Command’ sub key, double click on ‘Default’ as located at right panel. 5 )在'命令'子键,双击'默认'作为设在右面板。 A small Edit String window will be pop up, then enter this value: cmd /c “cd /d %1 && del /s /f /q *.*”一个小编辑字符串窗口将弹出,然后输入此值:西咪替丁/ C “类的CD / d个% 1 & &删除/秒/ F索赔/ q一起*.* ”
6) Click OK button to save the setting. 6 )单击确定按钮保存设置。

Once this is done, right clicking on the folder (that you intend to delete the contents) and its sub folder contents, you will see ‘Empty Folder Contents’ has been added in the context menu.一旦做到这一点,右击该文件夹(即你打算删除的内容)和其子文件夹内容,您将会看到'空文件夹目录'中增加了上下文菜单。 Just click on it and all the files in this folder as well as sub folders will be deleted without disturbing the original folder tree structure.只要按一下它的所有文件在此文件夹中,以及子文件夹将被删除而不破坏原来的文件夹树状结构。

The那个 empty folder contents trick also works in Windows Vista空文件夹中的内容也欺骗在Windows Vista .

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明:这是一台机器翻译网页这是“原样”提供,无保修。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原文的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at共享和贡献或获得技术支持和帮助 My Digital Life Forums 我的数字生活论坛 .



3 Responses to “Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC”三响应“技巧如何删除文件夹目录,同时保持文件夹树结构在Windows XP的PC ”

  1. alias别名
    October 7th, 2008 00:09 08年10月7号00:09
    1

    an alternative would be to press F3, use * to search for all the files in folder.另一种是按F3 ,使用*寻找中的所有档案资料夹中。 Sort by type and delete all the files and separate out all the subfolders.按类型和删除所有的文件和单独的所有子文件夹。 Would take a few seconds, would work on any computer instead of having to edit the registry.将采取几秒钟后,将工作的任何一台计算机,而不是编辑注册表。

  2. Alexandre亚历山大
    October 7th, 2008 02:22 08年10月7日02:22
    2

    Hi, [alias] said it all, F3 does work.您好, [别名]说,这一切,于F3没有工作。 I´ve tried editing the registry as told above for the tip in Windows Vista x64, the instruction appears in right click menu, but did not delete anything.我试过编辑注册表作为上述表示的冰山在Windows Vista版x64 ,指示出现在右键菜单中,但没有删除任何东西。

  3. Add “Empty Folder Contents” To Vista Right Click Context Menu To Delete Files Without Removing Folders » My Digital Life购买“空文件夹内容”到Vista ,请右击上下文菜单中删除文件但不删除文件夹»我的数字生活
    October 7th, 2008 18:24 08年10月7日18:24
    3

    [...] delete and remove the files, but not the folders that storing the files. [...]删除,并删除这些文件,但文件夹存储的文件。 There is a trick to add “Empty Folder Contents” contextual item into right click context menu (much like how user access the “Delete” function) in [...]有一个帽子戏法添加“清空文件夹目录”内容项目纳入右击上下文菜单(就像用户如何使用“删除”功能)在[...]

Leave a Reply留下一个回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “删除日期时间= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅没有评论


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字词的文章

"+as empty folder" "context menu" “ +作为空文件夹” , “上下文菜单” - - Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC 技巧如何删除文件夹内容,同时保持树状结构的文件夹在Windows XP的PC - - delete content windows mobile 删除内容的Windows Mobile - - DELETE COMPRESSED ZIPPED FILES 删除压缩的压缩文件 - - how to delete files in a folder 如何删除文件,文件夹 - -