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

sandy_0581

need help in writing a code....

Hi All,

I am having a problem in running the batch file in winscp using script having details like the host name, path where the file is gonna be stored, etc..

The actual scenerio is if that script file run's or executes successfully then only the
the batch file will work.

I am looking for a code or syntax which will connect that host using ppk file.

For example

"open ""My session""" "put ""C:\Documents and Settings\martin\Documents\myfile.dat"""

open test@example.com /privatekey=mykey.ppk

I have ppk file so I guess the second one is the right one.... but still that code looks wrong and whenever I am running batch file its not working.....

Please help me with this...

Thanks,
Santosh Kumar