SFTP commands
Hi, Please can somebody guide me how to write a script for SFTP file transfer. The file was being transferred via FTP but now I need to change it to SFTP. I can connect to the remote directory via FileZilla client tool. But I need to automate the process. I have searched and found something related in similar process where the batch file "SFTP.bat" is run to do this. The commands in the batch file are.... -------------------------- C: cd \Program Files\Sterling Commerce\Enterprise Command Line Client (Secure FTP)\ ceftp -a E:\Send.txt -i -------------------------- The commands in the batch file Send.txt are.... -------------------------- open hostserver port username password quit -------------------------- So just need to run SFTP.bat for this. However, this is not working for me. The error coming for me is "Session Establishment Failure occured; reason: Connection refused: connect" Any ideas/pointers will be of a great help.1 person needs an answerI do too
November 2nd, 2009 12:44am

If you need to transfer files via SFTP protocol using a Console App, checkout this SFTP lib page and this FTP lib page .
Free Windows Admin Tool Kit Click here and download it now
April 10th, 2010 3:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics