Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS how can I put files over SFTP with WinSCP Script on execute process task.

$
0
0

Hey All,

I have to put my .txt files over sftp location. And i dont want buy any third party task for ssis.

I took execute process task in ssis.

In executable : i gave WinSCP.EXE path

In Arguments : i write this /script=c:\scriptfile.txt

in  scriptfile.txt i write below code.

option batch on

option confirm off

open [name of my stored session from WinSCP]

PUT c:\users\*.txt  /SFTPLOCATION:/

exit

when i run my execute process task its give me an error "the process exit code was "1" while the expected was"0"

I am working on my local system.

So please let me know my script is wrong or any another issue ?

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>