I am connecting to Unix host from Windows and using SFTP connection. I am able to connect and do put & get. But I need to do even more. I want to write a function to which I will pass the command and that commands needs to be executed. Command could be anything, like listing of directories & files, or doing put or get, etc. I am not finding solution for this. If anyone could help me I would really appreciate. Its bit urgent, hence please reply fast.