Home > How-To Library > File/Folders Handling
How to Create folder (in three ways)
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * **************************************************************** '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
If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.