Command group Flag affected Reversible Execute on client Platform(s)
External commands YES NO NO All


FTPSite (socket,parameters) Returns status


Note: The flag is set according to whether Omnis was able to make a call to this external command.

This Web command is multi-threaded, allowing another thread to execute in the multi-threaded server while it runs. Note that the same socket cannot safely be used concurrently by more than one thread.

FTPSite issues a host specific SITE command to the FTP server.

Socket is an Omnis Long Integer field containing a socket opened to an FTP server using FTPConnect.

Parameters is an Omnis Character variable containing the host specific command and its parameters.

Status is an Omnis Long Integer field which receives the result of executing the command. Possible error codes are listed in the Web Command Error Codes Appendix.


; execute a FTP site specific command
FTPSite (iFTPSocket,'SITE CHMOD 744 /test/myFileToChange') Returns lErrText