Re: How to check file exists or not
stat
does not support file masks.
Why do you even need to check if the files exist?
Just use theget .../*.xml
straight away.
Sorry, I have overwritten your post, instead of responding.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
stat
does not support file masks.
Why do you even need to check if the files exist?
Just use theget .../*.xml
straight away.
stat
does not support file masks.
get .../*.xml
straight away.
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?
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.
I have added a guide for checking for file existence.