אני מחפש כלי למציאת תיקיות ריקות בהארדיסק - תוכנה - HWzone פורומים
עבור לתוכן
  • צור חשבון

אני מחפש כלי למציאת תיקיות ריקות בהארדיסק


Skippy

Recommended Posts

שמע, תוכנה אפשר בקלות למצוא ע"י חיפוש בגוגל. אבל נתקלתי במשהו מעניין, שאפשר לעשות בלי תוכנה, דרך CMD:

You don't need a program; you can do this at the command prompt. Open a command prompt window and navigate to the root folder of the drive in question. Enter this command:

DIR /AD/B/S | SORT /R > EMPTIES.BAT

The file EMPTIES.BAT now contains a list of all folders on your hard drive in reverse order. Use Word or another editor to put the filenames in quotes and add the prefix RD (with a space after RD) to every line in the file. In Word, you can do this easily by using Find and Replace to search for ^p (which represents the paragraph mark) and replace it with "^pRD " (quote, p, R, D, space quote), then hand-correct the first and last lines of the file if necessary. Save the modified EMPTIES .BAT file and exit your editor. Then simply launch the batch file. It will attempt the RD (remove directory) command on each folder, but the command will fail for any folder that is not empty.

קישור לתוכן
שתף באתרים אחרים

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

×
  • צור חדש...