Search found 1 match

by anic17
01 Jul 2020 05:14
Forum: DOS Batch Forum
Topic: Best command to delete a file?
Replies: 3
Views: 4870

Re: Best command to delete a file?

You can do it like that:

Code: Select all

if exist "%TMP%\*.*" erase "%TMP%" /s /q /f 2>nul 1>nul
Why do you want to make it in a different way? This works fine.