I need some help with a .cmd file that. I haven't been able to find much useful info on this subject. My .cmd file knowledge is limited to set,start, if,... What I need is a .cmd file that will delete all .txt files in a given directory that are at least seven days old. Can anyone help me with this?
The idea is something like the following...
for (each file in directory x)
if (file type is .txt)
if (file older than 7 days)
delete the file;