开发者

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:

  1. Delete all document.txt within F:\folder\.
  2. Delete all filename.exe within F:\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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜