Sure, you can use the API version of MakeSureDirectoryPathExists function to satisfy your needs, but here is an alternative way.
Latest File & Folder Articles - Page 5
CreatePath - Full Path Creation (wstring version)
This is a function to deal with creating complete (multi-level) paths.
Delete Routine
This piece of code will delete a folder that isn't empty in Windows NT or Windows 2000.
File Searcher Edit Control with Browse Button
Single control that contains both an edit control to type in a file name and a button to browse
CFileWatch
This class helps you to monitor files. You are notified if a file is modified outside the program.
Creating Mulitple Levels of Directories
Function that takes a full path and walks that string creating each folder until all are created
Latest Developer Videos
More...Latest CodeGuru Developer Columns
MFC Integration with the Windows Transactional File System (TxF)
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.
.NET Framework: Collections and Generics
The original release of the .NET Framework included collections as .NET was introduced to the Microsoft programming world. The .NET Framework 2.0 introduced generics to complement the System.Collections namespace and provide a more efficient and well performing option. Read on to learn more...

Obtaining External Window Handles and Window Captions with Visual Studio 2012
Learn how to obtain an outside application's window handle, in order to manipulate that window from inside your program, using either VB.NET or C#.

SOLID Principles in C# - An Overview
SOLID principles form the base for writing good and clean object oriented code in C#. Learn about the S.O.L.I.D principles and explore C# coding samples for each.
