ChangeDirectory Method

Change the current working directory on the remote server.

Syntax

object.ChangeDirectory( RemotePath )

Remarks

The ChangeDirectory method changes the current working directory on the remote server. This function uses the CWD command to change the current working directory. The user must have the appropriate permission to access the specified directory.

RemotePath
A string which specifies the directory on the remote server. The file pathing and name conventions must be that of the remote host.

Return Value

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.

See Also

CloseDirectory Method, GetDirectory Method, OpenDirectory Method, ReadDirectory Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.