Create a Folder Using API Call to Check for Path Validity

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
This function uses the MakeSureDirectoryPathExists API function to check if a supplied path is valid; if so, it creates the folder.

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

Declarations:

Code: