CDir class

This article was submitted .

Wraps a few Directory Windows API functions for creating and deleting complete directory subtrees.

If you found it just as annoying as I do that the Windows API functions ::CreateDirectory and ::RemoveDirectory do not work on sub-directories, you will be pleased to find that this is exactly what this class overcomes.


CreateCreates a dircetory.
DeleteDelete a directory tree.
CopyCopies a dircetory tree.
SearchFileScans a list of directories for a file.
ExpandPathExpands into a full path name.
ExpandFileExpands into a full filename.

Source Code Dependencies

Microsoft MFC Library
My Global MFC functions

Download Files

DownloadSource Code (3 Kb)