Windows Tips & Tricks - Tip 1
Deleting Files with a Pattern or Extension within a folder
If you wish to delete all files or a certain file within a folder and all subfolders,
1. simply go to Start -> Run -> "cmd."
2. When the command prompt appears, go to the directory that you wish to delete from.
using cd command
3. Type in DEL /F /S [*.type]
For example, if I wanted to delete all MP3 files from my PC, I would type in "CD C:\ " and then type in "DEL /F /S *.mp3". All of the MP3 files on my C: drive would then be deleted.
Note that if you do not want to delete files within subfolders, don't type the "/S."
If you wish to delete all files or a certain file within a folder and all subfolders,
1. simply go to Start -> Run -> "cmd."
2. When the command prompt appears, go to the directory that you wish to delete from.
using cd command
3. Type in DEL /F /S [*.type]
For example, if I wanted to delete all MP3 files from my PC, I would type in "CD C:\ " and then type in "DEL /F /S *.mp3". All of the MP3 files on my C: drive would then be deleted.
Note that if you do not want to delete files within subfolders, don't type the "/S."

0 Comments:
Post a Comment
<< Home