is anybody out there familiar enough with a bat script that helps me delete files that are older than an hr?
dir C:\Server\logs > C:\temp\logs_remove.txt
for /F "eol=; tokens=2" %%i in ('date /T') do set TODAY_DATE=%%i
for /F "eol=; tokens=1" %%i in ('time /T') do set TODAY_TIME=%%i
for /F "eol=; tokens=1" %%i in (C:\temp\mfdir_remove.txt) do ...
do command only allows me with one command statement, so wonder if someone would be kind and knowledgeable to help me accomplish this task.
Thanks much!
dir C:\Server\logs > C:\temp\logs_remove.txt
for /F "eol=; tokens=2" %%i in ('date /T') do set TODAY_DATE=%%i
for /F "eol=; tokens=1" %%i in ('time /T') do set TODAY_TIME=%%i
for /F "eol=; tokens=1" %%i in (C:\temp\mfdir_remove.txt) do ...
do command only allows me with one command statement, so wonder if someone would be kind and knowledgeable to help me accomplish this task.
Thanks much!