1

I have SSIS package, which uses winscp to execute some commands in a text file to upload files to a FTP site. I use DTExec.exe to execute this SSIS package. Right now, I need to show winscp FTP log including display file name uploaded on FTP site. Does someone know how to capture the log? I use '>' and it does not work.

0

1 Answer 1

0

WinSCP can generate its own log using /log command-line switch (or /xmllog):

winscp.com /script=script.txt /log=winscp.log

If you want to just capture WinSCP console output:

cmd.exe /C winscp.com /script=script.txt > winscp.log

In both cases, you will typically need to use full paths to all files (winscp.com, script.txt, winscp.log).

3
  • Thank you. But how to capture the log on SSIS and DTExec.exe Jun 5, 2017 at 19:20
  • What do you mean by "capture"? Jun 5, 2017 at 19:26
  • Display the command and file name after the file is uploaded to FTP site. Jun 5, 2017 at 20:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.