Creating a Remote Folder (CreateRemoteFolder)

Use the CreateRemoteFolder method to create a new folder (directory) on a remote server.

Syntax

Object.CreateRemoteFolder(BSTR strName)

Parameters

BstrName

This contains the folder's relative or absolute path.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

'Initialize all necessary fields for MySite : host name, user, password, etc.

MySite.Connect

MySite.CreateRemoteFolder("/dir") 'creates /dir (because absolute path was used)

MySite.RemoteFolder = "/dir" 'now change to the newly create 'dir' folder

MySite.CreateRemoteFolder("dir2") 'creates /dir/dir2 (because relative path was used)