Check if file EXISTS before Downloading
Any help you can provide would be greatly appreciated.
Advertisement
Advertisement
Advertisement
I have added a guide for checking for file existence.
Can you give us more details? What do you run? Can you post a screenshot?I've been testing this script and it doesn't work. I gather that this is suppose to write the results of the "ls" command to the log file but that is not happening. Every time I run this I get the File not found error.
Advertisement
Advertisement
Please post your full script.So i am having
WinSCP.StandardInput.WriteLine("mkdir " & strTargetFolder)
i have error condition and also i have "option batch continue" at batch level.
But the code just hangs in the
output = WinSCP.StandardOutput.ReadToEnd()
' Wait until WinSCP finishes
WinSCP.WaitForExit()
can any one of you suggest how to check the existense of the folder,before creating it on remote site?
Advertisement
stat
does not support file masks.
get .../*.xml
straight away.
Sorry, I have overwritten your post, instead of responding.stat
does not support file masks.
Why do you even need to check if the files exist?
Just use theget .../*.xml
straight away.
Advertisement
You can post new topics in this forum