DirDrill

Demonstrates recursive use of VB's Dir function.
Download

DirDrill Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Shareware
  • Publisher Name:
  • Karl E. Peterson
  • Publisher web site:
  • Operating Systems:
  • Windows XP/2000/98/Me/NT
  • File Size:
  • N/A

DirDrill Tags


DirDrill Description

Advertisement DirDrill is a Development software developed by Karl E. Peterson. After our trial and test, the software is proved to be official, secure and free. Here is the official description for DirDrill: if you call a function recursively from within a Dir loop you are asking for serious trouble. The reason for this is that Dir uses a single hFindFile handle with a series of FindFirstFile / FindNextFile / FindClose API calls. The design is simple and elegant, and you're stuck with its limitations. So what can you do to Drill down recursively through a folder hierarchy, looking for all (or specific) files under a given location? Your choices come down to writing your own version of Dir, with each recursive call starting a new call to FindFirstFile, and storing a unique hFileFile handle. Or, using Dir smartly. To use Dir recursively, The Secret is to run two loops within each level. The first Dir loop scans for all matching files and Folders. Folders are stored in one array, files in another. When that initial loop is completed, run another loop passing each element of the Folders array to this same function. Simple concept, horribly botched time and time again


DirDrill Related Software