Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the below WinSCP script that downloads Payment/transaction files from the FTP.

It gets the files with Transaction word from Benchmark "Uber" and copy it to Downloads folder then moves the file to Archive folder.

I want to create a log file that will log every event when the SSIS tasks runs.

I want to trace the connection successes/failures to the server...

option batch abort
option confirm off
open Uber
cd /Inbox/
get *Transaction* \\Uber\Payment\Downloads\ 
mv *Transaction* /Inbox/Archive/
exit


What I have tried:

option batch abort
option confirm off
open Uber
cd /Inbox/
get *Transaction* \\Uber\Payment\Downloads\ /log=\\Uber\Payment\Downloads\winscp.log
mv *Transaction* /Inbox/Archive/
exit
Posted
Updated 6-May-22 7:08am
v2
Comments
[no name] 6-May-22 12:38pm    
Creating log files is part of the SSIS job stream / SQL agent. I think you're looking in the wrong place.

1 solution

See:
https://winscp.net/eng/docs/logging_xml.

Note that it says, “The XML logging, being used along with scripting, is most typically enabled from command-line, using /xmllog parameter. It can be enabled in preferences too.”
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900