Does anyone here have experience running PSCP (secure FTP) through
ASPexec? I'm going loopy trying to figure out what I'm doing wrong.

I have a PSCP command like this (username, password, server changed):
"C:\Program Files\Putty\pscp.exe" -pw mypassword c:\testing.txt
[email]myusername@my.server.com:/Transactions/testing.txt[/email]

I can run that in a command window, and the file testing.txt shows up
in the Transactions folder on the remote server.

I have given the IUSR permission to run PSCP. When I run Filemon and
Regmon on the web server while running this page I don't see any Access
Denied errors, so I'm assuming my permissions are all right.

However, when I try to run that same command using ASPexec, the file is
not transferred even though I get an "Ok" message back from ASPexec.
My code is below (username, password, server changed). Any ideas? I'm
really stumped.

Kris

sPSCP = "-pw mypassword c:\testing.txt
[email]myusername@my.server.com:/Transactions/testing.txt[/email]"

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = """C:\Program Files\Putty\pscp.exe"" " & sPSCP
Executor.ShowWindow = False
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult