Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding the latest file in several sub-directory

Status
Not open for further replies.

subok

MIS
Feb 21, 2005
37
BE
Hi,
Any help to a newbie will greatly appreciated.

I'm trying to write a script to check the 4 latest file in a directoty containing several subdirectories.
d:\subok
\10
\20
\30
\40
\50

New can come and stored in any of the sub-dir (10,20,...). Goal is to copy the 4 newest file to a new directory.

THanks.

Kr,
Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top