Create Path Recursively as Needed (w/o APIs)

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Brock Weaver

Version Compatibility: Visual Basic 6

More information:
If your app needs to create a file somewhere and it is possible for your user type in the path (such as in a common dialog) this little guy will let you keep from bombing out by creating needed directories on the fly it will NOT alter any present directories.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: