pscp.exe will use a command prompt (cmd.exe) - there is no way (I know) around that. Try Start->Run and enter pscp.exe - it will launch a cmd.exe window and then close.

Depending on your web server (I'm assuming IIS on some version of Windows), you will be restricted from running cmd.exe via CGI. I encountered this when we switched from Win2k to Win2k3 and whatever version of IIS that comes with. Batch files that worked fine as CGI scripts suddenly failed due to the locked down access to cmd.exe.

I don't know of a way around that - but how about something like Net::SCP or another file transfer method instead of launching an external EXE?


In reply to Re: Running pscp from cgi-script in Windows by VinsWorldcom
in thread Running pscp from cgi-script in Windows by redrafiki

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.