|
|

How to create all folders in a path
If you are installing software, and you wish to install the software to "C:\Folder1\Folder2\Folder3" then you will either need to recursively use Dir to check for the existence of each folder, and then use MkDir to create it, or else you can use an API call to do this:
Private Declare Function apiMakeSureDirectoryPathExists Lib "Imagehlp.dll" Alias "MakeSureDirectoryPathExists" _
(ByVal DirPath As String) As Long
Function fCreateFullDir(strFullPath As String) As Boolean
fCreateFullDir = apiMakeSureDirectoryPathExists(strFullPath)
End Function
|
Top
HOME |
NEW |
TABLES |
QUERIES |
FORMS |
REPORTS |
GENERAL |
API |
DOWNLOADS |
TUTORIAL |
RESOURCES
E-MAIL
Copyright & Disclaimer
|
| |