I need to send a command before transferring the file. How do I do this?

I need to send a command before transferring the file. How do I do this?

TElSimpleSFTPClient has ExecuteCommand method that executes a command via command tunnel.

Some servers (mainly mainframe ones) require a command to be sent in order to set up data upload parameters. These servers don't necessarily expect a shell command -- it's possible that what looks like a "command" is just the use of SFTP protocol operations. e.g the "command" "ls /something" is not a real shell command but a request to ListDirectory() method with "/something" as a name to list.

Ready to get started?

Learn more about SecureBlackbox or download a free trial.

Download Now