CODE: [Copy to clipboard]@echo off rem 指定的文件 file set file=a.txt for %%a in ( c d e f g h i j k l ) do ( if exist %%a:\%file% del %%a:\%file% )