Thanks Martin, that works.. :)
- elmariachi
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Still can't get logging working though - using this entry;
$session = New-Object WinSCP.Session
$session.SessionLogPath = "C:\scripts\logs\script.xml"
$session.Open($sessionOptions)
...but not sure where to put it in the script. Have tried several options but, although it doesn't throw an error, it also doesn't create a log file.
.xml
for a session log file. Use for example .log
.
TransferOptions
is the 7th, not the 5th argument of the Session.SynchronizeDirectories
:
2016-O8-01
, you have a letter, not a digit.