Crmgo Blog

Recursive deletion of files by mask

Recursive deletion of files by mask

forfiles.exe /p "L:\backup\evenings" /s /m *.dll /d -3 /c "cmd /c del /q /f @file" /d -3 - delete files older than 3 days "L:\backup\evenings" - path where the search is performed *.dll - mask

Recursive deletion of files by mask
forfiles.exe /p "L:\backup\evenings" /s /m *.dll /d -3 /c "cmd /c del /q /f @file"
/d -3 - delete files older than 3 days
"L:\backup\evenings" - path where the search is performed
*.dll - mask

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.