Hi,
While running the psftp with the below code,it is able to connect and open the ftp connection and closed the connection.
But my scriptfile Test.ftp,is having the code "cd directoryname" where the directoryname does not exists.
In this case i should be able to catch the error,instead it is givving terun code 0(success) which belongs to closing connection.
how can i trap this error???
C:\\psftp.exe -v -i "C:\\filename.ppk" user@server.com -b "C:\\Test.ftp"
File "c:\\Test.ftp contains below code
cd directoryname_notexists
bye