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

Related posts:

  1. How to Rename folder (in three ways)
  2. How to Move Folder from one directory to another (in two ways)
  3. How to remove directory (in Four ways)
  4. How to get folder size of a given folder (in two ways)
  5. How to delete the given file (in four ways)
  6. How to Rename files (in five ways)
  7. How to check whether the given folder exists or not (in four ways)
  8. How to Move File from one directory to another (in three ways)
  9. How to Copy Folder from one directory to another directory (in Two ways)
  10. How to Return the file portion of a file + pathname (in two ways)

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.