Delete text files in folder older than 7 day using batch

March 25, 2015 at 22:45:47
Specs: Windows 7
I have few folders in a path like D:/BGKO/DATA/PROCESS, i need to go to this path and check each folder and delete the text files which are older than 7 days using batch (.bat) code

See More: Delete text files in folder older than 7 day using batch

Report •


#1
March 26, 2015 at 20:35:44
Post the output of this:

::====== script starts here ===============
::
:: weekly.bat 2015-03-27 10:32:16.54
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

:main
for /f "tokens=* delims= " %%a in ('dir /b NEWFILE') do (
echo.%%~Ta %%a
)
goto :eof
::====== script ends here =================

=====================

M2 Get custom script or take private lessons


Report •
Related Solutions


Ask Question