I'm using the following code to run WinSCP:

Please Login or Register  to view this content.

The 'ShellWait' is a very handy bit of code I found (Google) to cause VBA to wait until the Call Shell has finished before continuing:

Please Login or Register  to view this content.


However, because I'm doing it this way, I have no idea how to get the return code from WinSCP. It'll only be either a 1 or a 0......any ideas?