Skip to main content
Version: v6.5.0

Create remote folder

Command Description

Create a single folder in the file transfer service of the Commander

Command Prototype

bRet = CommanderFileService.CreateRemoteDir(sRemotedir,sFolderName)

Command parameter

parametermandatorytypedefault valueInstructions
sRemotedirTruestring""Specify the folder path in the file transfer service
sFolderNameTruestring""The folder name cannot exceed 50 characters and only supports any combination of numbers, letters, underscores, and Chinese characters. It must not contain spaces

Return result

BRet, Assign the result of running the command to this variable.

Run instance

/*********************************Create Remote Directory*************************************
Command Prototype:
bRet = CommanderFileService.CreateRemoteDir(sRemotedir,sFolderName)
Input Parameters:
sRemotedir -- Remote directory. Note: Specify the directory path in the file transfer service.
sFolderName -- Directory name. Note: The directory name cannot exceed 50 characters. Only supports combinations of numbers, letters, underscores, and Chinese characters. Must not contain spaces.
Output Parameter:
bRet -- The variable where the output of the function call will be saved.
Notes:
None
********************************************************************************/
Dim bRet = ""
bRet = CommanderFileService.CreateRemoteDir("","")
TracePrint(bRet)