Topic "Connecting winscp through btach/CMD file"

Author Message
Guest

Guest


Hey,

I want to connect the linux server from windows batch file application and I want copy the files.
Please help me to connect the linux server through winscp application from batch file coding.

Using following command getting connected and rest putftp.dat commands executing...Only issue is its asking username and password manually I have to type in command prompt...I want automate that also.

c:\Progra~1\winscp\winscp 169.xx.xxx.xxx /script=putftp.dat >>log2.txt

Please help

Thank you
Sreedhara TR
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Use open command instead:
https://winscp.net/eng/docs/scriptcommand_open
_________________
Martin Prikryl
mohanas

Guest


prikryl wrote:


Try this
option batch abort
option confirm off
cd/Program Files (x86)\WinSCP
winscp/Open <User Name>:<Password>@site.co.uk
lcd \reports
get file*.xml C:\TEMP\
exit
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License