Topic "need help in writing a code...."

Author Message
[View user's profile]

Joined: 2011-03-18
Posts: 2
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 /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...

Santosh Kumar

Last edited by sandy_0581 on 2011-03-21 15:45; edited 1 time in total
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26553
Location: Prague, Czechia
Sorry, your post does not include enough information.

Please read how to troubleshoot problems with WinSCP. If it turns out that you are not able to help yourself, read how to ask for support or report bugs efficiently, so others can help you.
Martin Prikryl

You can post new topics in this forum


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