The OnExecute event handler is invoked after the client has
successfully executed an external program using the SITE EXEC command.
To implement an event handler, the application should create a class
derived from the CFtpServer class, and then override this method.
This event will only be generated if the client has the
FTP_ACCESS_EXECUTE permission. Clients are not granted this permission
by default, and must be explicitly permitted to execute external
programs. If the client does have this permission, it can only execute
specific programs that have been registered by the server application
using the RegisterProgram method.
The GetProgramOutput method can be used to obtain the
unfiltered
output from the external command, while the GetProgramText
method will return filtered output from the program that contains only
printable text characters.