Delete Files on Schedule
We have a program that creates multiple log files per day.
They 're named something like, “LogFile_DATETIME"
Is there a way to configure an automation that would purge files that may not all have the same name? If they all begin with the same “LogFile_”
Use powershell or batch file with del LogFile*.* of course you can pipe another command on top of that to select only specific dates, etc.0
For this example, would I need to include the'_'?
Only if you have other files that have LogFile as part of the name that do not have the _ and you do not want to delete those!1
Join The Community