Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC Lời khuyên của Làm thế nào để Xóa Thư mục Nội dung Trong khi Duy trì cấu trúc cây thư mục trong Windows XP máy PC

Have you came across a scenario whereby you want to delete all files in main and sub folders while maintaining folder tree structure? Các bạn đã đến qua một kịch bản mà bạn muốn xóa tất cả các tập tin trong thư mục chính và phụ trong khi vẫn duy trì cơ cấu cây thư mục? 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. Theo mặc định, Windows không cung cấp một tính năng như vậy, và bạn cần phải làm điều đó trong một cách thủ công, bằng cách cho mỗi thư mục và nổi bật trong tất cả các tập tin bạn muốn xóa, sau Xóa một nút bấm. You need to repeat the same action by going to each of the sub folders until all files have been deleted. Bạn cần phải lặp lại hành động bằng cách cho mỗi tiểu thư mục cho đến khi tất cả các tệp tin đã bị xóa. All these steps could be very time consuming and painful especially when the folder tree structure becomes more complicated. Tất cả các bước này có thể được rất nhiều thời gian và đau đớn nhất là khi các cấu trúc cây thư mục trở nên phức tạp hơn. 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. Bây giờ có đơn giản, tiện ích này, bạn có thể xóa tất cả các tác phẩm trong chính và các thư mục phụ trong khi vẫn duy trì các cấu trúc cây thư mục chỉ với vài bước.



This feature can be enabled in right click folder menu by editing the registry key. Tính năng này có thể được kích hoạt trong trình đơn bên phải bấm vào thư mục bằng cách chỉnh sửa các đăng ky. Just follow instructions as mentioned below and you are done: Chỉ cần làm theo hướng dẫn được đề cập đến dưới đây, và bạn thực hiện:

1) Go to Start -> Run, then type 'regedit' and press enter 1) Vào Start -> Run, sau đó gõ 'regedit' và bấm vào
2) Locate to HKEY_CLASSES_ROOT\Directory\shell 2) Xác định vị trí để HKEY_CLASSES_ROOT \ Directory \ shell
3) Right click on 'shell' folder and choose New -> Key, name the new sub key as 'Empty Folder Contents'. 3) phải bấm vào 'bao' thư mục và chọn New -> Key, đặt tên mới, phụ chính là 'rỗng Thư mục Nội dung'.
4) Right click on 'Empty Folder Contents' and choose New -> Key, name the sub key as 'Command'. 4) phải bấm vào 'Xóa Thư mục Nội dung' và chọn New -> Key, tên tiểu chính là 'Command'.
5) Under the 'Command' sub key, double click on 'Default' as located at right panel. 5) Theo 'Command' phụ chính, nhấp đúp chuột vào vào 'Mặc định' nằm ở bên phải là bảng điều khiển. A small Edit String window will be pop up, then enter this value: cmd /c “cd /d %1 && del /s /f /q *.*” Một cửa sổ nhỏ Hiệu chỉnh String sẽ được cửa sổ pop-up, sau đó nhập giá trị này: cmd / c "cd / d% 1 & & del / s / f / q *.*"
6) Click OK button to save the setting. 6) Nhấp vào OK để lưu các thiết lập.

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. Một khi điều này được thực hiện, phải bấm vào thư mục (mà bạn muốn xóa các nội dung) và các tiểu thư mục nội dung, bạn sẽ thấy 'rỗng Thư mục Nội dung' đã được thêm trong bối cảnh trình đơn. 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. Chỉ cần nhấp chuột vào đó và tất cả các tập tin trong thư mục này cũng như các tiểu thư mục sẽ bị xóa mà không cần disturbing gốc cây cấu trúc thư mục.

The Cái empty folder contents trick also works in Windows Vista nội dung thư mục trống rỗng, lừa cũng làm việc trong Windows Vista . .

IMPORTANT : The page is machine translated and provided "as is" without warranty. Lưu ý: Các trang web là máy tính dịch và cung cấp "như là" mà không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể là khó hiểu. Please refer to Xin vui lòng tham khảo original English article Tiếng Anh bản gốc bài viết whenever possible. bất cứ khi nào có thể.


11 Responses to “Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC” 11 hồi đáp tới "Lời khuyên của Làm thế nào để Xóa Thư mục Nội dung Trong khi Duy trì cấu trúc cây thư mục trong Windows XP máy tính"

  1. nigel Nigel
    May 6th, 2009 04:17 6 tháng năm, 2009 04:17
    11 11

    greatest thing i have ever encountered. lớn nhất mà tôi có bao giờ gặp. imagine that the internet is ACTUALLY helpful tưởng tượng rằng internet là thực sự hữu ích

  2. Alexander Char Alexander Char
    March 20th, 2009 02:31 Tháng ba 20, 2009 02:31
    10 10

    hi i can see the context menu when i right click but when i click the menu it says hi i có thể xem các trình đơn ngữ cảnh khi tôi phải bấm vào nhưng mà khi tôi nhấp chuột vào trình đơn thông báo rằng
    “This file does not have a program associated with it for performing this action.Create an association in the Folder Options control panel "Tập tin này hiện không có một chương trình liên kết với nó cho hoạt động này, Hiệp hội action.Create một trong bảng điều khiển Tùy chọn Thư mục

  3. anonymous vô danh
    October 29th, 2008 03:23 29 tháng mười, 2008 03:23
    9 9

    be careful cutting and pasting from the web page into regedit. cẩn thận cắt và dán từ các trang web vào regedit.

    You may find that the “double-quotes” copied from the web page are not the same as the double quotes needed by the command. Bạn có thể thấy rằng "hai dấu ngoặc kép" sao chép từ các trang web không giống như hai dấu ngoặc kép cần thiết của lệnh.

    It didn't work for me until I deleted and reenterd the “double-quotes” in regedit. Nó đã không làm việc cho tôi cho đến khi tôi đã xóa và reenterd là "hai dấu ngoặc kép" trong regedit. Now it works fine. Bây giờ nó hoạt động tốt.

    Its a bit dangerous tho. Của nó một chút nguy hiểm tho. Is there a way of poping up a dialog box “Are you sure?” ??? Có cách nào của poping lên một hộp thoại "Bạn có chắc chắn không?"?

  4. snpages.info snpages.info
    October 23rd, 2008 10:41 23 tháng mười, 2008 10:41
    8 8

    Ty Myrick, Ty Myrick,
    In other words, you want to get all of the files in a subfolder structure and put them in a single folder. Nói cách khác, bạn muốn nhận được tất cả các tập tin trong một cấu trúc con và đặt chúng trong một thư mục.
    Use the first comment from alias above, Sử dụng các từ bí danh đầu tiên nhận xét ở trên,
    but instead of delete all the files, cut these files and then paste into a new and empty folder. nhưng thay vì xóa tất cả các tác phẩm, cắt những tập tin này và sau đó dán vào một thư mục mới và không có sản phẩm nào.

  5. Ty Myrick Ty Myrick
    October 16th, 2008 04:59 16 tháng mười, 2008 04:59
    7 7

    Is there any way to do the reverse of this? Có bất cứ cách nào để làm đảo ngược những điều này? Sometimes I want to delete a subfolder structure without deleting the files within it. Đôi khi tôi muốn xóa một con mà không có cấu trúc xóa các tập tin bên trong nó. Is there any way to delete a folder and move the files up in the hierarchy? Có bất cứ cách nào để xóa một thư mục và di chuyển các tập tin trong các Hierarchy?

  6. jase07 jase07
    October 11th, 2008 00:35 11 tháng mười, 2008 00:35
    6 6

    hey! này! what if i wanted to delete all the contents in the folder by using the context menu what string should i place in the dafault key? nếu những gì tôi muốn xóa tất cả các nội dung trong thư mục của trình đơn ngữ cảnh bằng cách sử dụng chuỗi những gì nên tôi đặt trong dafault khoá?

  7. jase07 jase07
    October 11th, 2008 00:29 11 tháng mười, 2008 00:29
    5 5

    this is great thanks tuyệt vời này là nhờ

  8. Bob Learmonth Bob Learmonth
    October 8th, 2008 00:48 8 tháng mười, 2008 00:48
    4 4

    What are the symbols that look like reverse Bs? Các biểu tượng rằng hình như đảo ngược Bs?
    in the string. trong chuỗi. I tried copying and pasting and the symbols turned to &&. Tôi cố gắng sao chép và dán các biểu tượng và muốn dùng & &. Right clicking a folder showed the string entered in the reg not empty folder contents Right click vào một thư mục cho thấy chuỗi nhập trong reg không trống rỗng, nội dung thư mục

  9. Add “Empty Folder Contents” To Vista Right Click Context Menu To Delete Files Without Removing Folders » My Digital Life Thêm "Hết Thư mục Nội dung" Để Vista Quyền Bối cảnh Click vào Menu Để Xoá tập tin không có Xóa Thư mục »My Digital Life
    October 7th, 2008 18:24 7 tháng mười, 2008 18:24
    3 3

    [...] delete and remove the files, but not the folders that storing the files. [...] Xóa và xóa các tập tin, nhưng đó không phải là thư mục lưu trữ các tập tin. 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 [...] Có một trick để thêm "Hết Thư mục Nội dung" nội dung vào mục bên phải bấm vào trình đơn ngữ cảnh (giống như làm thế nào người dùng truy cập vào "Xoá" chức năng) trong [...]

  10. Alexandre Alexandre
    October 7th, 2008 02:22 7 tháng mười, 2008 02:22
    2 2

    Hi, [alias] said it all, F3 does work. Chào, [bí danh] cho biết tất cả, F3 hiện công việc. 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. Tôi đã cố gắng chỉnh sửa trong registry như nói trên cho các tip trong Windows Vista x64, hướng dẫn xuất hiện trong trình đơn nhấp chuột phải, nhưng không xóa bỏ bất cứ điều gì.

  11. alias bí danh
    October 7th, 2008 00:09 7 tháng mười, 2008 00:09
    1 1

    an alternative would be to press F3, use * to search for all the files in folder. sẽ là một thay thế để bấm F3, hãy sử dụng * để tìm kiếm cho tất cả các tập tin trong thư mục. Sort by type and delete all the files and separate out all the subfolders. Sắp xếp theo loại và xóa tất cả các tập tin và riêng biệt ra khỏi tất cả các subfolders. Would take a few seconds, would work on any computer instead of having to edit the registry. Sẽ có được một vài giây, sẽ hoạt động trên bất kỳ máy tính nào thay vì phải chỉnh sửa registry.

Leave a Reply Để lại một trả lời

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> Bạn có thể sử dụng các thẻ:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Đăng ký nhận xét tính năng đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo về ý kiến mới nhất được đăng, đăng ký với My Digital Life Comments RSS feed Cuộc sống kỹ thuật số Bình luận của tôi nguồn cấp dữ liệu RSS or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong thư điện tử tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm kiếm các điều khoản cho các Điều

delete files not folders không xóa các tập tin thư mục - -- delete files but not folders nhưng không xóa các tập tin thư mục - -- delete folder contents dos xóa thư mục nội dung dos - -- delete folder content xóa thư mục nội dung - -- delete folder but not contents nhưng không thể xóa thư mục nội dung - -- dos delete folder contents dos xóa thư mục nội dung - -- dos delete folder and contents dos xóa thư mục và nội dung - -- dos delete folder content dos xóa thư mục nội dung - -- delete all folders in a folder xóa tất cả các thư mục trong một thư mục - -- delete tree cmd xóa bỏ cây cmd - -- remove contents of folder loại bỏ nội dung của thư mục - -- delete folder without deleting files xóa thư mục mà không xóa các tập tin - -- delete folder content cmd xóa thư mục nội dung cmd - -- delete directory content xóa thư mục nội dung - -- windows delete directory tree xoá sổ cây thư mục - -- cmd delete tree cmd xóa cây - -- automatically delete folder contents tự động xóa thư mục nội dung - -- deleting tree structure windows xp command xóa bỏ cơ cấu cây xp cửa sổ lệnh - -- how to delete all the content of a folder in cmd làm thế nào để xóa tất cả nội dung của một thư mục trong cmd - -- delete folders within a folder xoá các thư mục trong một thư mục - -- delete files but not folder nhưng không xóa các tập tin thư mục - -- delete all files not folders xóa các tập tin không phải tất cả các thư mục - -- how to delete a folder but not the contents làm thế nào để xóa một thư mục, nhưng không phải là nội dung - -- HOW TO DELETE FOLDER IN CMD LÀM THẾ NÀO ĐỂ XOÁ thư mục trong cmd - -- dos delete contents of folder dos xóa nội dung của thư mục - -- set delete of folder contents by date xóa thư mục cài đặt các nội dung theo ngày - -- delete folder contents xóa thư mục nội dung - -- delete folder contents command xoá nội dung thư mục lệnh - -- delete content folder windows xoá nội dung thư mục cửa sổ - -- remove files but not folders nhưng không phải loại bỏ các tập tin thư mục - -- delete folder contents windows xóa thư mục nội dung cửa sổ - -- delete directory content only xóa thư mục nội dung chỉ - -- delete directory tree xóa cây thư mục - -- HOW TO REMOVE A FOLDER WITHOUT DELETING CONTENTS LÀM THẾ NÀO ĐỂ XOÁ Đáp FOLDER MÀ KHÔNG xóa LỤC - -- delete all folder content xóa tất cả nội dung thư mục - -- how can i remove folder in folder problem] làm thế nào tôi có thể xóa thư mục trong thư mục vấn đề] - -- cmd delete folder cmd xóa thư mục - -- how to sort personal folder contents làm thế nào để sắp xếp nội dung trong thư mục cá nhân - -- delete folders but not files xoá các thư mục, nhưng không phải các tập tin - -- delete Content.Outlook folder xóa thư mục Content.Outlook - -- delete folder contents but maintain structure xoá nội dung thư mục, nhưng duy trì cơ cấu - -- dos delete all contents within a folder rd dos xóa tất cả nội dung trong một thư mục rd - -- deleteing contents of folder in ms-dos deleteing nội dung của thư mục trong MS-DOS - -- windows xp empty delete folder contents Windows XP trống rỗng, xóa thư mục nội dung - -- delete files without deleting directories xóa các tập tin mà không cần xóa thư mục - -- empty multiple folders without deleting the folder trống rỗng, còn nhiều thư mục mà không xóa các thư mục - -- how to delete files not folders làm thế nào để xóa các tập tin thư mục không - -- how to set up folders structure in windows làm thế nào để thiết lập cấu trúc thư mục trong cửa sổ - -- delete all files in directory tree xóa tất cả các tập tin trong cây thư mục - -- how do i remove a folder within a folder? làm thế nào để tôi loại bỏ một thư mục trong một thư mục? - --