Re: OneDrive upload works but Errors out at the End
OK, I assume that the
See https://winscp.net/eng/docs/commandline#operations
/ABCDEFGHIJKLMNOP/APPZ
was your attempt to specify a target directory. That not the correct syntax. This should do:
WinSCP.exe My_Profile1/ABCDEFGHIJKLMNOP/APPZ /defaults /upload // file.txt
See https://winscp.net/eng/docs/commandline#operations