Re: About omitted quotes
Storing exit code to a file is task external to WinSCP. So it is language dependant.
If you do not know how to do that in VB (there has to be a way), you can create a .bat file like below and execute it from VB instead of executing winscp directly.
If you do not know how to do that in VB (there has to be a way), you can create a .bat file like below and execute it from VB instead of executing winscp directly.
winscp.com /command ...
echo %errorlevel% > exitcodefile