I need to download zip folder using sftp.. for which i made .bat file which is passing username and password with the details of file to get downloaded..
see the .bat file code:-
winscp.com /command ^
"Open sftp://username:email@example.com/" ^
"get foldername.zip" ^
but while running .bat file from command prompt.. Connection get established but after that getting an error:-
See the error below:-
Starting the session...
Active session:  firstname.lastname@example.org
Unknown command '^'.
C:\Program Files (x86)\WinSCP>get foldername.zip "exit"
'get' is not recognized as an internal or external command,
operable program or batch file.
Could you please help me what mistake has been done in the .bat script