How about this? Keep xmlfile just the filename, so sftptraget will still be loginname@ipaddress:/targe
but give the full name of that file as parameter.
You may also solve the problem by setting the working directory of pscp.Exe via the fifth ShellExecute parameter you now pass "".
Bye, Olaf.
Main Topics
Browse All Topics





by: Olaf_DoschkePosted on 2009-06-12 at 14:06:22ID: 24616170
Well, then it's not ShellExcute failing, but you start another exe and only pass "myfile.xml" as a parameter. The pscp.exe will likely not find this file to transfer it.
Bye, Olaf.