Previous Document Next Document

Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.MkFolder


CorelScriptTools.MkFolder

Function MkFolder(Folder As String) As Boolean

Description

Member of CorelScriptTools

The MkFolder method creates a new folder.

Parameter
Description
Folder
Specifies the name of the folder to be created. Path information is optional.

The MkFolder function returns one of the following values:

 
True (-1) = the folder was created
 
False (0) = the folder was not created
Example 1

The following VBA example creates the folder work as a subfolder of the current folder.

MKFOLDER "work"
Example 2

The following VBA example creates the folder work as a subfolder of the current folder and assigns -1 to success.

success = MKFOLDER ("work")

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.