Repository navigation
Custom Commands
Robin Rodricks edited this page Feb 16, 2023
·
12 revisions
-
Execute() - Execute a custom or unsupported command, and return a single-line FTP response.
-
ExecuteMultiline() - Execute a custom or unsupported command, and return a multiline output of the FTP response.
Use this code:
var reply = client.Execute("XCRC myfile.mp4");
if (reply.Success){
Console.WriteLine("Code: " + reply.Code);
Console.WriteLine("Message: " + reply.message);
}Use this code:
var reply = client.ExecuteMultiline("LIST JOB00044");
if (reply != null){
Console.WriteLine("Got lines: " + reply.Count);
}Sample output of executing a custom command to get JCL job output on IBM z/OS systems:

- Auto Connection
- Auto Reconnection
- FTP(S) Connection
- FTP(S) Connection using GnuTLS
- FTP(S) Connection using BouncyCastle
- FTPS Proxies
- Custom Servers
- Custom Commands
- v40 Migration Guide