CodeItBetter Programming Another VB Programming Blog

How to Create folder (in three ways)

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'File/Folder Handling - How to Create folder (in three ways)
'Using MkDir:

Public Sub CreateFolderUsingMkDir(ByVal sFolderName As String)
    MkDir sFolderName
End Sub
 
'Using FSO:

Public Sub CreateFolderUsingFSO(ByVal sFolderName As String)
'Set a reference to "Microsoft Scripting Runtime"
    Dim FSO As Scripting.FileSystemObject
    Set FSO = New Scripting.FileSystemObject
    FSO.CreateFolder sFolderName
    Set FSO = Nothing
End Sub
 
'Using API:

http://codeitbetter.co.nr/vb6/code/Vb6Code00004.html
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.