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.
Asked
Active
Viewed 636 times
1 Answers
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:
- Make sure you are using
winscp.com
, notwinscp.exe
. - Run
winscp.com
viacmd.exe
, as that is what understands the>
.
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
-
Thank you. But how to capture the log on SSIS and DTExec.exe – user1188125 Jun 05 '17 at 19:20
-
What do you mean by "capture"? – Martin Prikryl Jun 05 '17 at 19:26
-
Display the command and file name after the file is uploaded to FTP site. – user1188125 Jun 05 '17 at 20:02