Tvorba adresářové struktury |
![]() |
Funkce: Public Function DirExist(dPath As String) As Boolean ' Test existence sdresáře If Dir(dPath, vbDirectory) <> "" Then DirExist = True Else DirExist = False End If End Function Public Function
DirCreateNested(dPath As String) As Boolean Pokud chcete otestovat, že adresář c:\dir1\dir2\dir3 existuje, použijte tento kód: Dim isTrue
As Boolean Pokud adresářová struktura neexistuje, pak použijte:: Call DirCreateNested("c:\dir1\dir2\dir3") Jednoduché a efektivní.
|
![]() |
Autor: The Bozena |