|
Contents | Previous | Next | Subchapters |
| Syntax |
ftp("type", type name)
|
| See Also: | openftp , closeftp , lsftp |
"ASCII" or "BINARY".
The type "ASCII"
should be used when transferring text files and
"BINARY"
should be used for other files.
The default mode is ascii.
In binary mode, the file is moved byte-by-byte.
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 copy the file LS-LR.ZIP by
entering the commands
ftp("type", "BINARY")
ftp("get", "LS-LR.ZIP")
If you then enter the command
listdir
The file LS-LR.ZIP will be included in the listing
for the current O-Matrix working directory.