I have done the following steps successfully:
GetFiles(........);
The thing I want to add to my App is that:
session.ExecuteCommand("sh /fol1/fol1_1/abc.sh");
To execute a shell command on the server using WinSCP .NET assembly, use the Session.ExecuteCommand
:
session.ExecuteCommand("sh abc.sh");
This will work with the SCP and the SFTP (with limitations) protocols only.
See https://winscp.net/eng/docs/library_session_executecommand#remarks