I'm trying to execute WinSCP with a script from within PowerShell. I've created the PS script so that it creates the WinSCP script file programmatically based on yesterday's date.
The script file is created successfully and when I execute those steps from within "winscp.exe /console" or "winscp.com", each of the steps work perfectly.
However, when I try to execute from a command line with the "/script" switch, either nothing appears to happen, or I get an error.
Nothing is generated with the "/log" switch.
c:\Program Files (x86)\WinSCP>winscp.exe /console /script="I:\scripts\2016-01-21.txt" /log="I:\log.txt"
c:\Program Files (x86)\WinSCP>winscp.com /console /script="I:\scripts\2016-01-21.txt" /log="I:\log.txt"
No mapping for the Unicode character exists in the target multi-byte code page
c:\Program Files (x86)\WinSCP>winscp.com /script="I:\scripts\2016-01-21.txt" /log="I:\log.txt"
No mapping for the Unicode character exists in the target multi-byte code page
c:\Program Files (x86)\WinSCP>winscp /script="I:\scripts\2016-01-21.txt" /log="I:\log.txt"
No mapping for the Unicode character exists in the target multi-byte code page
c:\Program Files (x86)\WinSCP>winscp.exe /script="I:\scripts\2016-01-21.txt" /log="I:\log.txt"
c:\Program Files (x86)\WinSCP>winscp /script=I:\scripts\2016-01-21.txt /log=I:\log.txt
No mapping for the Unicode character exists in the target multi-byte code page
Any ideas?