Solved

Delete folder that has at least 100,000 files.

Posted on 2007-11-14
3
257 Views
Last Modified: 2008-02-01
I need to delete a folder that has at least 100,000 files in it.  The files are small 1 or 2 KB each but I need a way to delete them.  And it would be all the files in a specified directory.
0
Comment
Question by:casit
3 Comments
 
LVL 6

Expert Comment

by:sabioit
Comment Utility
0
 
LVL 30

Expert Comment

by:SteveGTR
Comment Utility
Here a delete command that will do the trick when the current directory is the directory where the files exist:

del /f /q *.*
0
 
LVL 9

Accepted Solution

by:
MSE-dwells earned 500 total points
Comment Utility
Personally, I always use -

C:\> rd /s /q KillThisFolder

... or if I only want the content removed -

C:\> cd KillThisFolder
C:\KillThisFolder> rd /s /q .

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now