File:  [WindowsNT SDKs] / q_a / samples / walk / readme.txt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:30:09 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

 Sample: Walking a Directory Tree

Summary:

A demonstration of how to recursively find all
subdirectories under the current working directory is
available in a sample file named WALK.

The WALK sample can be found in the \Q_A\SAMPLES\WALK
directory.

More Information:

Starting with the current working directory, a call is made
to the Walk function which will find all subdirectories in
the current working directory. When a subdirectory is found,
the current working directory is changed to this
subdirectory and another, recursive call is made to Walk,
which again will find all subdirectories in this new current
working directory. Once all subdirectories for the current
working directory have been found, the current working
directory is changed up one level (..). When the original
current working directory is re-entered, then the recursive
process stops.

Additional reference words:

FindFirstFile, GetCurrentDirectory, SetCurrentDirectory
FindNextFile, GetFileAttributes

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.