RosettaCodeData/Task/Conditional-structures/Batch-File/conditional-structures-2.bat

6 lines
78 B
Batchfile

IF EXIST %filename% (
del %filename%
) ELSE (
echo %filename% not found
)