in reply to Running pscp from cgi-script in Windows

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?

  • Comment on Re: Running pscp from cgi-script in Windows

Replies are listed 'Best First'.
Re^2: Running pscp from cgi-script in Windows
by redrafiki (Initiate) on Oct 26, 2010 at 22:54 UTC
    Thanks Vins, I don't think I can use Net::SCP in Windows, actually I'm not sure if the problem is IIS, since I'm using Apache as web server in my Windows XP computer.