Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC טיפים של כיצד למחוק תוכן תיקיה, תוך שמירה על מבנה עץ התיקיות ב-Windows XP מחשב

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) התחל -> הפעלה ולאחר מכן הקלד regedit 'ולחצו אנטר
2) Locate to HKEY_CLASSES_ROOT\Directory\shell 2) אתר אל 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) לחץ לחיצה ימנית על 'קליפה' ובחר חדש -> מפתח, מפתח משנה בשם חדש כמו 'תוכן תיקייה ריקה'.
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 *.*” עריכת חלון קטן המיתרים יהיה pop up, ולאחר מכן הזן את הערך: cmd / c "cd / d% 1 & & del / s / 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 : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.


12 Responses to “Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC” 12 תגובות ל "של טיפים כיצד למחוק תוכן תיקיה, תוך שמירה על מבנה עץ תיקיות ב-Windows XP מחשב"

  1. Paul M. Paul M.
    August 28th, 2009 03:54 28 אוגוסט 2009 03:54
    12 12

    Using this post and info from שימוש זה לפרסם מידע מ http://blogs.msdn.com/oldnewthing/archive/2008/04/17/8399914.aspx http://blogs.msdn.com/oldnewthing/archive/2008/04/17/8399914.aspx
    I pieced together this one line command to put in the “Empty Folder Contents” registry key. אני pieced יחד זה אחד בשורת הפקודה כדי לשים את "הצגת תוכן תיקיה ריקים" מפתח הרישום. It gives a warning with pauses, which can be tweaked (I couldn't figure out how to have it recognize a yes or no and quit in a one line command) and deletes everything in the directory, including empty directories. זה נותן אזהרה עם הפסקות, אשר ניתן צבט (לא יכולתי להבין איך זה צריך להכיר כן או לא להיסגר בתוך שורת פקודה אחת) ומוחק הכל במדריך, כולל ספריות ריק.

    Just follow this post and put the following in for the Default Command in the registry: פשוט בצע את ההודעה ולשים את הדברים הבאים עבור פיקוד ברירת מחדל ברישום:

    cmd /c “echo BE CAREFUL – X out of the window if you don't want to delete directory contents && pause && echo LAST WARNING – all files and subdirectories will be deleted && pause && cd /d %1 && del /s /f /q *.* && for /f “usebackq delims=” %%d in (`”dir /ad/b/s | sort /R”`) do rd “%%d”" cmd / C "הד זהיר - איקס מהחלון אם אתה לא רוצה למחוק את תוכן הספריות & & & & הד הפסקה האחרונה אזהרה - כל הקבצים יימחקו subdirectories & להשהות & & cd / d% 1 & & del / s / F / *.* & Q & for / f "delims usebackq ="% d% ב ( `" Dir / מודעות / b / s | מין / R "`) לעשות rd "% d%" "

  2. nigel נייג 'ל
    May 6th, 2009 04:17 6 מאי 2009 04:17
    11 11

    greatest thing i have ever encountered. אני הדבר הגדול ביותר אי פעם נתקל. imagine that the internet is ACTUALLY helpful לדמיין כי האינטרנט הוא למעשה מועיל

  3. Alexander Char אלכסנדר תו
    March 20th, 2009 02:31 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 היי אני יכול לראות את תפריט ההקשר כאשר לחץ אני בסדר אבל כאשר אני לחץ על תפריט זה אומר
    “This file does not have a program associated with it for performing this action.Create an association in the Folder Options control panel "קובץ זה אין תוכנית המשויך אליו לביצוע זה action.Create עמותה בלוח הבקרה אפשרויות תיקייה

  4. anonymous אנונימי
    October 29th, 2008 03:23 29 אוקטובר 2008 03:23
    9 9

    be careful cutting and pasting from the web page into regedit. להיזהר גזירה והדבקה מדף האינטרנט לתוך 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. אתה עלול למצוא כי "פעמיים מצטט" מועתק מדף האינטרנט לא זהה במרכאות כפולות הצורך על ידי הפקודה.

    It didn't work for me until I deleted and reenterd the “double-quotes” in regedit. זה לא עבד לי עד שאני שנמחקו reenterd "פעמיים מצטט" ב regedit. Now it works fine. עכשיו זה עובד בסדר.

    Its a bit dangerous tho. Tho קצת מסוכן שלה. Is there a way of poping up a dialog box “Are you sure?” ??? האם ישנה דרך של poping את תיבת דו שיח "האם אתה בטוח?"???

  5. snpages.info snpages.info
    October 23rd, 2008 10:41 23 אוקטובר 2008 10:41
    8 8

    Ty Myrick, טאי מייריק,
    In other words, you want to get all of the files in a subfolder structure and put them in a single folder. במילים אחרות, אתה רוצה לקבל את כל הקבצים במבנה תיקיית משנה ושמתי אותם בתיקיה אחת.
    Use the first comment from alias above, השתמש התגובה הראשונה מן הכינוי לעיל,
    but instead of delete all the files, cut these files and then paste into a new and empty folder. אבל במקום למחוק את כל הקבצים, לחתוך את הקבצים הללו ולאחר מכן הדבק לתוך תיקיה חדשה וריקה.

  6. Ty Myrick טאי מייריק
    October 16th, 2008 04:59 16 אוקטובר 2008 04:59
    7 7

    Is there any way to do the reverse of this? האם יש דרך לעשות את ההפך של זה? Sometimes I want to delete a subfolder structure without deleting the files within it. לפעמים אני רוצה למחוק את תיקיית משנה מבנה מבלי למחוק את הקבצים בתוכה. Is there any way to delete a folder and move the files up in the hierarchy? האם יש דרך למחוק תיקייה להעביר את הקבצים למעלה בהיררכיה?

  7. jase07 jase07
    October 11th, 2008 00:35 11 אוקטובר 2008 00:35
    6 6

    hey! היי! 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? מה אם אני רוצה למחוק את כל התוכן בתיקייה באמצעות תפריט ההקשר מחרוזת מה אני צריך מקום במפתח dafault?

  8. jase07 jase07
    October 11th, 2008 00:29 11 אוקטובר 2008 00:29
    5 5

    this is great thanks זה תודה רבה

  9. Bob Learmonth בוב Learmonth
    October 8th, 2008 00:48 8 אוקטובר 2008 00:48
    4 4

    What are the symbols that look like reverse Bs? מה הם סמלים שנראים כמו Bs הפוכה?
    in the string. במחרוזת. I tried copying and pasting and the symbols turned to &&. ניסיתי להעתיק ולהדביק את הסמלים פנה & &. Right clicking a folder showed the string entered in the reg not empty folder contents לחיצה ימנית על התיקייה הראה את המחרוזת נכנס ב-reg לא ריק תוכן התיקיה

  10. Add “Empty Folder Contents” To Vista Right Click Context Menu To Delete Files Without Removing Folders » My Digital Life הוסף "תוכן תיקייה ריקה" לחץ על העכבר כדי Vista Context Menu למחוק קבצים מבלי להסיר תיקיות »Digital My Life
    October 7th, 2008 18:24 7 אוקטובר 2008 18:24
    3 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 [...] יש טריק כדי להוסיף "תוכן תיקייה ריקה" פריט הקשר לתוך קליק ימני תפריט ההקשר (כמו כיצד גישה למשתמש "מחק" הפונקציה) ב [...]

  11. Alexandre אלכסנדר
    October 7th, 2008 02:22 7 אוקטובר 2008 02:22
    2 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, ההוראה מופיעה בתפריט קליק ימני, אבל לא למחוק דבר.

  12. alias כינוי
    October 7th, 2008 00:09 7 אוקטובר 2008 00:09
    1 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. ייקח כמה שניות, תעבוד על כל מחשב, במקום לערוך את הרישום.

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> באפשרותך להשתמש בתגים אלה: <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. כדי להירשם הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה העדכנית של תגובות, כדי להירשם My Digital Life Comments RSS feed שלי חיים דיגיטלי תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדש ב דוא"ל תקציר יומי.
Custom Search

New Articles מאמרים חדשים

Incoming Search Terms for the Article תנאי נכנסות חיפוש עבור מאמרים

delete files not folders לא למחוק קבצים ותיקיות - -- delete only folder content רק למחוק את תוכן התיקיה - -- delete all files not folders לא למחוק את כל הקבצים והתיקיות - -- Casio Rock File structure Casio רוק מבנה קובץ - -- how to delete a folder and all its content in cmd איך למחוק תיקייה ואת כל התוכן שלה ב cmd - -- can delete files but not folders ניתן למחוק קבצים אבל לא תיקיות - -- delete empty sub-folders in a directory tree. תת למחוק תיקיות ריקות עץ בספרייה. - -- how to move selected files maintain directory structure xp כיצד להעביר קבצים שנבחרו לשמור על מבנה הספריות XP - -- tip how to move selected files maintain directory structure xp עצה כיצד להעביר קבצים שנבחרו לשמור על מבנה הספריות XP - -- windows delete selected files from directory tree החלונות למחוק קבצים שנבחרו מהעץ Directory - -- delete "folder content" cmd למחוק "תוכן התיקייה" cmd - -- delete file in folder tree למחוק את הקובץ בתיקייה עץ - -- policy delete content folder המדיניות למחוק את תוכן התיקיה - -- remove folders within folders להסיר תיקיות בתוך תיקיות - -- to delete the content from tree component כדי למחוק את התוכן מרכיב עץ - -- command to delete folder contents but not folder הפקודה למחוק את תכולת התיקייה אבל לא תיקיה - -- delete folder and subfolders in cmd למחוק תיקייה ותיקיות משנה cmd - -- dos erase folder content דוס למחוק את תוכן התיקיה - -- godaddy.com email can't delete folder דוא"ל godaddy.com לא יכול למחוק את התיקייה - -- How to delete folders within Folders כיצד למחוק תיקיות בתוך התיקיות - -- How to delete Slingbox Flash Tour folder in Start Menu כיצד למחוק תיקיה Slingbox פלאש סיור תפריט התחלה - -- how to delete the contents in a folder כיצד למחוק את תוכן בתיקייה - -- how to delete the contents in a folder כיצד למחוק את תוכן בתיקייה - -- how to remove a folder from with in a folder כיצד להסיר תיקיה מ עם בתיקיה - -- cmd delete tree cmd למחוק עץ - -- delete all files and subdirectories without deleting the main directory למחוק את כל הקבצים subdirectories מבלי למחוק את הספרייה המרכזית - -- delete content folder למחוק את תוכן התיקיה - -- file deletion operation it links exist in the directory structure קובץ זה מבצע מחיקה קישורים קיימים במבנה Directory - -- how to delete only files and not folders כיצד למחוק רק קבצים ולא תיקיות - -- remove folders contents להסיר תוכן תיקיות - -- remove all files and folders within a folder but leave the folder להסיר את כל הקבצים והתיקיות בתוך תיקייה אבל להשאיר את התיקייה - -- This file does not have a program associated with it for performing this action. קובץ זה אין תוכנית המשויך אליו לביצוע פעולה זו. Create an association in the folder options ctrl panel" empty folder צור שיוך באפשרויות תיקיה בלוח CTRL "התיקיה ריקה - --