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:
- How to Rename folder (in three ways)
- How to Move Folder from one directory to another (in two ways)
- How to remove directory (in Four ways)
- How to get folder size of a given folder (in two ways)
- How to delete the given file (in four ways)
- How to Rename files (in five ways)
- How to check whether the given folder exists or not (in four ways)
- How to Move File from one directory to another (in three ways)
- How to Copy Folder from one directory to another directory (in Two ways)
- How to Return the file portion of a file + pathname (in two ways)