|Could you please edit the below code.|
Path from where I have to delete the .csv file "c:\abc"
I have to keep the recent 15 days file and delete the old ones
My Problem is similar to the below mentioned subject:-
HELP Del Files Older Than 15 Days?
for /f "tokens=* delims=" %%A in ('dir /b/a-d/o-d') do (
set /a kept+=1
if !kept! geq 6 call :sub1 %%A
echo del "%*"