CreatePath() Function
CreatePath() uses API calls to create a directory tree. A simple application is included to demonstrate its use.
Original Author: Dave Lambert
Inputs
sPath - A string containing the required directory structure.
Assumptions
Module modCreatePath contains all of the code and API declarations required to use the function in your project.
Returns
Boolean - True if the directory structure has been created or already exists, False on error.
Side Effects
None.
API Declarations
Public Type SECURITY_ATTRIBUTES
nLength As Long
lpSecurityDescriptor As Long
bInheritHandle As Long
End Type
Declare Function GetFileAttributes Lib "kernel32" Alias "GetFileAttributesA" (ByVal lpFileName As String) As Long
Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (ByVal lpPathName As String, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 94 times
Categories
Attachments
CODE_UPLOAD13560182001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 4,501 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.