INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

3.png0.png4.png3.png2.png1.png3.png
Today872
Yesterday1238
This week8095
This month18114
Total3043213

Visitor Info

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

Who Is Online

1
Online

sobota, 23 listopad 2024 20:13

Batch to Delete File Automatically

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

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