我有很多文件D:\cert
想要删除,但也想保留一些名称中带有特定文本的文件 - 我该如何删除所有*.pdf
文件,但保留*_sign.pdf
所有子文件夹?
20241220cert.pdf
20241220cert_sign.pdf
20241221cert.pdf
20241221cert_sign.pdf
20241222cert.pdf
20241222cert_sign.pdf
运行脚本删除后的示例:
20241220cert_sign.pdf
20241221cert_sign.pdf
20241222cert_sign.pdf