Where id i say
?"WinSCP not liking a slash"
?"WinSCP not liking a slash"
$DateTime = Get-Date -format dd-MM-yyyy
$session.SessionLogPath = "X:\Logs\Daily Download $DateTime.log"
$session = New-Object WinSCP.Session
$session.SessionLogPath = "X:\Logs\TransferLog.log"
$DateTime = Get-Date -format yyyy/MM/dd
$session = New-Object WinSCP.Session
$session.SessionLogPath = "X:\Logs\TransferLog-$DateTime.log"
Can't open log file 'X:\Logs\TransferLog-2018/09/25.log'.
System Error. Code: 2.
The system cannot find the file specified"