INFORMATICS

The Best

Przełącznik języka

This Site

CMS

Hardware

Databases

Emulators

Powershell

Storage Array

Antivirus program

Licznik

2.png3.png8.png6.png4.png8.png9.png
Today508
Yesterday470
This week1408
This month16834
Total2386489

Visitor Info

  • IP: 44.192.65.228
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

4
Online

Lunes, 27 Junio 2022 17:34

Batch to Delete File Automatically

Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

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