I am new at this, but I am trying to make a .BAT file that can delete all files in a folder that is older then X days. I am able to do this using the Command Line, but when i use it inn a .BAT file it does't do anything.
My example:
@echo off
ForFiles /p “C:\Users\Username\Pictures\2018-03” /s /d -1 /c “cmd /c del @file”
end
If I use the line: ForFiles /p “C:\Users\Username\Pictures\2018-03” /s /d -1 /c “cmd /c del @file”
in cmd it will delete all files older then 1day.