How can I delete files with unknown folder names in the path


i need script delete files older 4 days, won't know name of 1 of folders in path.  in other words, folder1 contains many folders not know name of, , each of folders contains folder named download, need find , delete files older 5 days.  folder1\*\download\*.* older 4 days.  don't know how w/o knowing name of middle folder.  know it's doable.  assume i'd need find name of middle folders , store them somewhere, , insert names variable in path.  in advance.

dave

please post question in scripting forum.

http://social.technet.microsoft.com/forums/en/itcg/threads


santhosh sivarajan | mcts, mcse (w2k3/w2k/nt4), mcsa (w2k3/w2k/msg), ccna, network+| houston, tx
blogs - http://blogs.sivarajan.com/

facebook twitter linkedin ss tech forum

posting provided no warranties,and confers no rights.


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client