Location: North East England
Posted: 2013-07-25 18:33
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.
Location: Prague, Czechia
You can test existence of file/directory using
Also, if you turn off directory caching (or start the script with empty cache), even the
You can post new topics in this forum
And it's free!