Argument | Description |
n | A number from 1 to 10 representing the ITC you wish to execute an FTP request. |
s | A string representing the FTP operation. See Usage below. |
s | The ID of a macro to be executed when the operation completes. |
n | The request timout in seconds. Use 0 for infinity. |
Operation | Description |
CD file1 | Change Directory. Changes to the directory specified in file1. |
CDUP | Change to parent directory. Equivalent to "CD.." |
CLOSE | Closes the current FTP connection. |
DELETE file1 | Deletes the file specified in file1. |
DIR file1 | Directory. Searches the directory specified in file1. (Wildcards are permitted but the remote host dictates the syntax.) If no file1 is specified, a full directory of the current working directory is returned. Use ph_itcgetdata or ph_itcsavedata to access the returned data. |
GET file1 file2 | Retrieves the remote file specified in file1, and creates a new local file specified in file2. |
LS file1 | List. Searches the directory specified in file1. (Wildcards are permitted but the remote host dictates the syntax.) Use ph_itcgetdata or ph_itcsavedata to access the returned data. |
MKDIR file1 | Make Directory. Creates a directory as specified in file1. Success is dependent on user privileges on the remote host. |
PUT file1 file2 | Copies a local file specified in file1 to the remote host specified in file2. |
PWD | Print Working Directory. Returns the current directory name. Use ph_itcgetdata or ph_itcsavedata to access the returned data. |
QUIT | Terminates the current user. |
RECV file1 file2 | Retrieves the remote file specified in file1, and creates a new local file specified in file2. Equivalent to GET. |
RENAME file1 file2 | Renames the remote file named in file1 to the new name specified in file2. Success is dependent on user privileges on the remote host. |
RMDIR file1 | Remove Directory. Removes the remote directory specified in file1. Success is dependent on user privileges on the remote host. |
SEND file1 file2 | Copies a local file, specified in file1, to the remote host, specified in file2. Equivalent to PUT. |
SIZE file1 | Returns the size of the directory specified in file1. |