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.

user1188125
  • 677
  • 2
  • 13
  • 21

1 Answers1

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).

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992