Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么可以代替的吗???来这里做这个工作?
del D:\folder*.ext 如果 ??? 失败
否则,在失败中分支的更好方法是什么?我希望比使用 FOR 循环更好。
@echo off del "D:\folder\*.ext" if exist "D:\folder\*.ext" goto :fail goto :EOF :fail echo "D:\folder\*.ext" wasn't deleted pause