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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find largest files on a drive

Status
Not open for further replies.

sshafe

Programmer
Oct 18, 2002
71
US
I am trying to make a list of 5 or 10 of the largest files on a drive.

Any ideas where to start?

Thanks in advance
 
Look at the FileSystemObject and how a function can call itself. Basically, have a global collection that is the top 5 or ten files. Then have a sub start at the root and look at each file. If the file is larger than any of the items in the collection, replace the one it is bigger than with it. Have the sub recursively call itself for each subfolder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top