Create a new directory on the remote FTP host.
Syntax
object.MakeDirectory( NewDirectory )
The object placeholder represents an expression that evaluates
to a FileTransfer object.
Return Type
Integer
Remarks
The MakeDirectory method creates a new directory on the
remote host. Note that you must have the appropriate permission to
create a directory or an error will occur.
The NewDirectory argument specifies the name of the
directory to create on the remote host.
A value of zero is returned if the operation was successful,
otherwise a non-zero error code is returned which indicates the
cause of the failure.
Example
Private Sub cmdMakeDir_Click()
Dim nError As Long
nError = FileTransfer1.MakeDirectory(Trim(txtNewDirectory.Text))
If nError <> 0 Then
MsgBox "MakeDirectory error: " & nError
End If
End Sub
See Also
ChangeDirectory Method,
RemoveDirectory Method
|