Hello there!

I have been tackling the same issue several months ago. By that time, I failed to "make it work" directly from perl, and resorted to writing a thin wrapper over WinSCP. It is long enough in the past so that I am no longer able to recollect why exactly I did it like this, sorry.

Now, I am not claiming at all that this is the best approach, but it worked in my case.

The code itself is probably too long to be posted here, and it is definitely not generic enough to be put to CPAN, but if you want to take a look at it just to have more options, give me a holer, and I will send it to you.

https://winscp.net/eng/docs/portable

https://winscp.net/eng/docs/scripting

UPDATE: added "not" in the sentence stating the code is not generic enough to be pushed to CPAN.


In reply to Re: SFTP on Windows by jahero
in thread SFTP on Windows by Poolstar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.