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.txtwithinF:\folder\. - Delete all
filename.exewithinF:\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
加载中,请稍侯......
精彩评论