Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

FileSystemObject : CreateFolder Method

Description: 

This func­tion cre­ates a Folder.

Format : 

objectOf­FileSys­te­mOb­ject. CreateFolder(foldername)

Arguments: 
  • objectOf­FileSys­te­mOb­jec­tAs the names says, it’s a FileSystemObject.
  • fold­er­name
    • Manda­tory
    • Type:     String
    • Folder will be cre­ated with the same name what you will pass here.

Function FnCreateFolder(strCompleteFolderPath)
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set objFolder = fso. CreateFolder(strCompleteFolderPath)
End Function

Call FnCre­ate­Folder (“c:\New Folder”)

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: