Is there something that can go instead of ??? here to make this work?
del D:\folder*.ext if ??? goto fail
Else what's the better way to branch in fail? I'm hoping there's better than using a FOR loop.
Is there something that can go instead of ??? here to make this work?
del D:\folder*.ext if ??? goto fail
Else what's the better way to branch in fail? I'm hoping there's better than using a FOR loop.
@echo off
del "D:\folder\*.ext"
if exist "D:\folder\*.ext" goto :fail
goto :EOF
:fail
echo "D:\folder\*.ext" wasn't deleted
pause