Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am calling the winscp.exe via an SSIS Agent Job. The job works like a charm when I run the script through a winscp command prompt.If I run it through SSIS it fails when I schedule the job.

And the error am getting is:

Error: 0xC0029151 at Execute Process Task, Execute Process Task: In Executing "C:\Program Files\winSCP\winscp422.exe","-script=\\mylocalservername\Batch.txt" at "\\mylocalservername\", The process exit code was "1" while the expected was "0".


The following are the arguments in the SSIS: ","-script=\\mylocalservername\Batch.txt"

My script is as follows:
option batch on
option confirm off
open sftp://User:Password@Server:22
put \\my local file path /remote server directory/
close
exit
Posted
Comments
nishantcomp2512 13-Feb-12 7:47am    
replace \ with \\.might work...

1 solution

Not sure regarding the issue but quick googling gives below two links which looks promising. Try it out. Hope it will be helpful.

Link 1[^]

Link 2[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900