我无法使用 SSIS(执行进程任务)和 Winscp 下载任何文件。我关注了各种论坛,并能够创建一个 SSIS 包。我不确定我哪里出错了。
我遵循的步骤:-
Execute Process Task :-
i) In Executable I wrote "C:\Program Files (x86)\WinSCP\WinSCP.exe"
ii)In Arguments :- /script=C:\Users\abcd\Desktop\efgh\remotelocal.txt
iii) Working directory :- C:\Users\abcd\Desktop\efgh (I believe this is required for the location where file needs to be saved)
在 Remotelocal.txt 我有以下脚本: -
option batch abort
option confirm off
open ftpes://ghteyeriygvs:%69%315694598665@00.000.000.000/ (this is dummy value)
option transfer binary
cd ./wfgh/
get *.* C:\Users\abcd\Desktop\egfh
close
exit
在执行这个包我得到以下错误
[执行进程任务] 错误:在“C:\Users”处执行“C:\Program Files (x86)\WinSCP\WinSCP.exe”“/script=C:\Users\abcd\Desktop\efgh\remotelocal.txt” \abcd\Desktop\efgh",进程退出代码为“1”,而预期为“0”。