Hi ,
I'm trying to get file from SFTP folder to my windows local directory .
I'm able to access SFTP via Winscp tools & move the file to my local using sftp & get command
However when i try to automate it using bat file , it is not working .Bat file runs & nothing happens.
Script in getcsvfile.bat file
echo @off
open sftp://Username:pwd@publicIP/ -hostkey="ssh-rsa 2048 key="
pwd
cd /root/csvfiles
get *.csv c:\data
Can someone please help