Windows: Find and delete files of a given pattern (also searching subdirectories)

I needed a quick way to clear out all the compiled Python ".pyc" and Java ".class" files on my drive, and searching via Windows Explorer is just slow.

  • Open up a command prompt.
  • Go to the folder to start from.
  • Type in:

del /S *.pyc

del /S *.class

It'll all be over after the wall of text has finished moving.

8QmIp 
So simple, so effective.

Source

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog