Sorry, I do not understand what is your question.
Btw, this is definitely a wrong syntax:
(though I cannot tell how you should fix it, as I do not understand, what you want).
I realize my description was not easy to understand, sorry for that.
I’m using winscp called from a bat file (SendToFTP.bat)
I’m running a batch file called SendToFTP.bat with /xxx.yyy.html.
/xxx.yyy.html is an parameter and is handled by the variable %1% inside the bat file.
The bat file should then start winscp and send the specific file to be transferred to FTP with winscp as specified in the %1% variable. (in this case xxx.yyy.html)
I need to check that the file I send up to the FTP server has actually ended up on the FTP server.
Because the entire flow should be done automatically, I need to get back some type of error if xxx.yyy.html did not end up on the FTP server.
So what are they was I can verify that my file actually ended up on the FTP?