Windows - How to delete specific files / empty a folder on a schedule

preview_player
Показать описание
This short video explains how to delete specific file types OR even just empty a folder on a regular schedule.
Рекомендации по теме
Комментарии
Автор

Thanks mate!

Here is line to delete a specific file, yall can change between .txt\.jpg or any file type

ForFiles /p "C:\YourFolder" /m *.txt /s /c "cmd /c del @file"

ProjektNoiseBox
Автор

can you make a batch for a specific date, and if the pc will be close the day that will open the pc

bacardilove
Автор

is it possible to delete in seconds instead of days?

Shotify_by_midhun
Автор

Can you empty the contents of an entire folder?

deirdretynan
Автор

so i made my own task were it cleans out my memory cashe every 5 min. is there a way to remove or disable this? everytime i try to, it sas i have no authority. it ask for my username and password. if i fill those in i get an error. i am a administrator. plz help

WestdijkSteffan