Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

mohanas

Re: Connecting winscp through btach/CMD file

martin 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
Guest

Connecting winscp through btach/CMD file

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