INFORMATICS

The Best

Batch to Delete File Automatically

Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна
 

Batch to delete file based on extension .txt

echo Batch to delete file

del "D:\temp\*.txt" /s /f /q

echo Done

Save file to del.bat

/s parameter will delete all files contained in the directory subfolders. If you do not want to delete files from subfolders, remove /s parameter.

/f parameter ignores any read-only setting.

/q “quiet mode,” meaning you won’t be prompted Yes/No

Batch to delete all files

echo Batch to delete file

del "D:\temp\*.*" /s /f /q

echo Done

Save file to del.bat

 

 

Search