Topic "automizing the download of files using bat file"

Author Message


hi guys

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:- /command ^
"Open s" ^
"get" ^

but while running .bat file from command prompt.. Connection get established but after that getting an error:-

See the error below:-

Starting the session...
Session started.
Active session: [1]
Unknown command '^'.

C:\Program Files (x86)\WinSCP>get "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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
My guess is that you have a space after the ^.
But that's difficult to tell as those might be lost when posting the message.
Attach the script file instead, if this does not help.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License