Deleting files of a certain name with batch scripts
I have a series of HDDs that contain folders with movies. These folders also contain a named .exe
file and .txt
file that are always consistent in naming.
I'm looking to make a batch script that deletes these files within a given directory.
For example:
- Delete all
document.txt
withinF:\folder\
. - Delete all
filename.exe
withinF:\folder\
.
So far I have:
CD F:\
DEL filename.exe开发者_如何学C /s
Exit
Or I was thinking also of:
CD F:\
DEL filename* .exe
Exit
精彩评论