Windows XP Tips: Delete Contents from Folder without Deleting Folders نصائح ويندوز إكس بي : حذف محتويات مجلد من المجلدات دون حذف
There may be many instances where you would want to delete all the contents inside the folder, but wanted to maintain the folder structure as such. قد يكون هناك حالات كثيرة حيث كنت تريد حذف جميع محتويات داخل المجلد ، ولكن يريد الحفاظ على هيكل المجلد على هذا النحو. By default Windows does not provide any such option. افتراضي ويندوز لا توفر أي خيار من هذا القبيل. If there are lots of folders inside a particular folder maintaining a folder structure, then its difficult to delete contents from all the folders. وإذا كانت هناك الكثير من المجلدات مجلد خاص داخل مجلد الحفاظ على الهيكل ، ثم الصعبة لحذف محتويات كل من المجلدات. This task can be done using a registry entry. وهذه المهمة يمكن القيام به باستخدام سجل دخول.
To do this go to Start-> Run and type ‘ regedit ‘. إلى ذلك ، انتقل إلى بدء> تشغيل واكتب 'regedit'. In the registry, navigate to HKEY_CLASSES_ROOT\Directory\Shell key. في السجل ، انتقل إلى HKEY_CLASSES_ROOT \ دليل \ شل الرئيسية. Right click on ‘Shell’ and then create the ‘ Empty folder Contents ‘ sub key with the New|Key. حق انقر على 'شل' وبعد ذلك خلق 'مجلد فارغ المحتويات' الفرعية مع الرئيسية الجديدة | الرئيسية. then create the command key in the same way. بعد ذلك خلق قيادة رئيسية في نفس الطريق. Open ‘ Default ‘ by right clicking on it in the right hand side window. فتح 'الافتراضية' من جانب الحق النقر على أنها في اليد اليمنى نافذة جانبية. and fill it with the following entry- ‘ cmd /c “cd /d %1 && del /s /f /q *.* . وشغل بعد ذلك مع دخول 'cmd / ج" مؤتمر نزع السلاح / د 1 ٪ & & دل / ق / و / ف *.*.


Once you close the registry, the new command will appear in the right click menu of the folder. مرة واحدة لك وثيقة التسجيل ، قيادة جديدة سوف تظهر في حق انقر على قائمة من المجلد. Now whenever you want to delete the contents, select “Empty Folder Contents” and only the contents will be deleted, the folder structure will remain intact. الآن كلما أردت حذف محتويات ، اختر "مجلد فارغ المحتويات" وإلا سيتم حذف محتويات ، المجلد هيكل ستبقى سليمة.
NB: Please back up your registry before making any changes. ملاحظة : يرجى عمل نسخة احتياطية من السجل الخاص بك قبل إجراء أي تغييرات.
Share this Post حصة هذا المنصب
![[سبورل] - 4848.png](http://www.nirmaltv.com/wp-content/uploads/2008/09/stumbleupon-48x48.png)

























Nice tip. نيس معلومات سرية. Keep that coming. يبقي أن المقبلة.

@Rakshit, @ Rakshit ،
Sure! متأكد! More tips on the way. المزيد من النصائح حول الطريقة.
Nice tip Nirmal. نيس معلومات Nirmal. But you have to put the “warning” notes near the top before someone messed up their registry. ولكن لديك لوضع "تحذيري" ويلاحظ بالقرب من قبل كبار شخص افسدت حتى سجلاتها.
Great tip buddy. العظمى الأصدقاء لمعلومات سرية. Will save everybody a lot of time. سيوفر على الجميع الكثير من الوقت.
Nice tip Nirmal thanks نيس معلومات Nirmal الشكر
Very cool tip I have not heard about it before رائع جدا معلومات لم اسمع عنه قبل
Nirmal, I’ve tried it on XP and its not working, Did anyone get this working. Nirmal ، حاولت أن ويندوز إكس بي وليس العمل ، هل أي شخص الحصول على هذا العمل.
@Syahid, @ Syahid ،
You are right, the warning should be at the top. انت الحق ، وتحذير يجب أن يكون على رأس. I forgot that, thanks for that correction. نسيت أن ، وذلك بفضل لأن تصويب.
@Venkat, @ Venkat ،
I have tried this on Vista and it was working fine, please make sure that you have entered the value with the correct number of spaces. لقد حاولت هذه على فيستا وانها تعمل غرامة ، يرجى التأكد من أنك قد دخلت قيمة مع تصحيح عدد من الأماكن.
This is one good thing I was looking for after sendto option. وهذا هو أحد شيء جيد كنت أبحث بعد sendto الخيار. Thanks nirmal, I will link you for sure in the next speed linking وبفضل nirmal ، سأربط لكم لعلى ثقة في سرعة ربط المقبل
@Ashish, @ آشيش ،
Glad that you liked the tip. سعيد لكم أن يحب طرف.
verkat, verkat ،
The following Key data works on WinXP SP2: البيانات الرئيسية التالية يعمل على WinXP SP2 :
cmd /c cd /d %1 && del /s /f /q *.* cmd / مؤتمر نزع السلاح ج / د 1 ٪ & & دل / ق / و / ف *.*