Skip to main content

Create-Folder

Command Description

Create a folder

Command Prototype

File.CreateFolder(sPath)

Parameter Description

ParameterRequiredTypeDefaultDescription
sPathTruepath'''C:\Users'''The path of the folder to be created. You can fill in the absolute path or use the @res "path" form to indicate the path under the res folder of the current process. The path separator needs to be escaped, such as "C:\Laiye RPA" or @res"Laiye RPA \Laiye RPA"

Demo

/************************************Create folder************ ************************ 
Command prototype:
File.CreateFolder('''C:\Users''')
Input parameters:
sPath--the path to the folder that needs to be created
Outgoing parameters:
None
********************************************************************************/
Dim sPath='''C:\Users\Chance\Desktop\testFile\tempFolder'''
File.CreateFolder(sPath)