Return code when using the put command by a VBScript
Hello,
I'm using WinSCP via a VBScript. Currently I've got the following problem:
* I'm using the PUT command to upload a file example.txt to a remote server
* when I try to upload again the same file name the already existing file example.txt
gets replaced and the return code says "Everything's fine, no errors/problems occured"
But I want to avoid that an existing file on the remote server gets overwritten and want to avoid this by checking the return code of the WinSCP call I use.
Currently I always get a return code of 0, meaning that everything was o.k.
Any ideas how to achive this???
Thank you all in advance
Joachim
I'm using WinSCP via a VBScript. Currently I've got the following problem:
* I'm using the PUT command to upload a file example.txt to a remote server
* when I try to upload again the same file name the already existing file example.txt
gets replaced and the return code says "Everything's fine, no errors/problems occured"
But I want to avoid that an existing file on the remote server gets overwritten and want to avoid this by checking the return code of the WinSCP call I use.
Currently I always get a return code of 0, meaning that everything was o.k.
Any ideas how to achive this???
Thank you all in advance
Joachim