"Haoqiang" wrote in message 
news:1CBBF2F0-ABE3-446B-947D-A2F3938FBF72@microsoft.com...
> Hi,
>
> I need your help.
>
> There is a folder, it contains some subfolders and files.
>
> I need to delete the files created 2days ago in this folder , I also need 
> to
> delete the files in the subfolders, but I do not need to delete the 
> subfolder.
>
> I have looked for the scripts in internet for a long time, but no result 
> was
> found.
Instead of re-inventing the wheel, you could use someone else's wheel:
xxcopy.exe /db#2 /rs /yy /ed /s "d:\My Files"
You can download xxcopy.exe from a number of sites.