Opsys = Win 10 Pro
Office = 365
I'm creating the bat file in VBA using the FileSystemObject's CreateTextFile method.
When I run the bat file I receive the following error in the log.
< 2018-04-09 19:59:44.874 Script: Active session:  firstname.lastname@example.org
> 2018-04-09 19:59:44.875 Script: ^
< 2018-04-09 19:59:44.876 Script: Unknown command '^'.
. 2018-04-09 19:59:44.877 Script: Failed
. 2018-04-09 19:59:44.877 Script: Exit code: 1
. 2018-04-09 19:59:44.878 Closing connection.
. 2018-04-09 19:59:44.878 Sending special code: 12
. 2018-04-09 19:59:44.879 Sent EOF message
Does anyone have any idea why I would be receiving this and how to resolve the issue? When I run the auto generated script create from WinSCP it works fine but when I try to recreate it in VBA it fails.
Thank you for any advice/help.