October 28th, 2003, 09:09 PM
Redirect PSCP output to a file
I am using the PuTTY client and trying to issue a pscp command from a VBScript by:
ret = WSHShell.run("cmd /k cd c:\program files\putty\ & pscp -p email@example.com:interface/outgoing/adhoc/* f:\jpn\interface\in\tog\adhoc\ & exit",2,true)
When run manually this command returns the message "pscp: wildcard '*' matched no files". I would like to redirect this output to a file, so I added " > c:\temp\pscp.out" but it doesnt work.