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

Author Message
sandy_0581
[View user's profile]

Joined: 2011-03-18
Posts: 2
Location: DALLAS, TEXAS
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

Last edited by sandy_0581 on 2011-03-21 15:45; edited 1 time in total
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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
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