|
|
1.1 ! root 1: Sample: Walking a Directory Tree ! 2: ! 3: Summary: ! 4: ! 5: A demonstration of how to recursively find all ! 6: subdirectories under the current working directory is ! 7: available in a sample file named WALK. ! 8: ! 9: The WALK sample can be found in the \Q_A\SAMPLES\WALK ! 10: directory. ! 11: ! 12: More Information: ! 13: ! 14: Starting with the current working directory, a call is made ! 15: to the Walk function which will find all subdirectories in ! 16: the current working directory. When a subdirectory is found, ! 17: the current working directory is changed to this ! 18: subdirectory and another, recursive call is made to Walk, ! 19: which again will find all subdirectories in this new current ! 20: working directory. Once all subdirectories for the current ! 21: working directory have been found, the current working ! 22: directory is changed up one level (..). When the original ! 23: current working directory is re-entered, then the recursive ! 24: process stops. ! 25: ! 26: The following is a list of the Win32 API functions used in ! 27: this sample: ! 28: ! 29: FindFirstFile GetCurrentDirectory SetCurrentDirectory ! 30: ! 31: FindNextFile GetFileAttributes
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.