Error Handling in WinSCP
Hi, I'm attempting to write a generic parameterised Windows batch script to perform sftp tasks by calling WINSCP. Is there a way to validate a remote directory name before it is used as it seems I can do a "get -delete" successfully, and then if I run "get -delete" again, no error message is returned, despite there being no files to get. I just want to be certain that when I display a "success" message the sftp has worked, and when I display a "fail" message the sftp has failed.
"cd <invalidremotepath>" does not seem to generate an error until an attempt is made to write to the invalid folder.
Thanks.
"cd <invalidremotepath>" does not seem to generate an error until an attempt is made to write to the invalid folder.
Thanks.