Close WinSCP if Access denied
Hello together,
I'm using WinSCP to download some files automatically. Sometimes our partner change a password. So I get a Access denied.
At this case I have a little problem, because my software is still waiting, until WinSCP is finish and close the command window.
I call WinSCP with: MayPath\winscp.exe /console /script="MySkricpt.txt"
MyScript:
option confirm off
open ftp://XXX:XXX@XXX"
At this Point I got the "Access denied", and the WinSCP is trying again and again...
My qusetion: is there an option, to close WinSCP if I got an Access denied?
Many Thanks
Markus
(Of course I had read the Documents, and I have found no answer)
I'm using WinSCP to download some files automatically. Sometimes our partner change a password. So I get a Access denied.
At this case I have a little problem, because my software is still waiting, until WinSCP is finish and close the command window.
I call WinSCP with: MayPath\winscp.exe /console /script="MySkricpt.txt"
MyScript:
option confirm off
open ftp://XXX:XXX@XXX"
At this Point I got the "Access denied", and the WinSCP is trying again and again...
My qusetion: is there an option, to close WinSCP if I got an Access denied?
Many Thanks
Markus
(Of course I had read the Documents, and I have found no answer)