Contents Previous Next Subchapters

cd - Changing Directories on a Remote Host
Syntax ftp("cd")
ftp("cd", 
remote directory)
See Also: openftp , lsftp

Description
The return value is a character row vector containing the name of the current directory on the remote host. If present, the character row vector remote directory specifies a directory on the host that is to become the current directory.

Example
If ftp is not currently linked to O-Matrix, enter the command
     dll dll\ftp.dll, ftp
You can now open a remote connection by entering the command
     ftp("open", "ftp.microsoft.com", "anonymous", "guest")
If O-Matrix responds
     T
the connection was successful. In this case you can change into the subdirectory called Products by entering the following command
     ftp("cd", "Products")
If this change of directory is successful, O-Matrix will respond
     Products