script returns instantly

Advertisement

arthurprs
Guest

script returns instantly

Hello all,

I'm running the following script
option batch abort
option confirm off
open ftp://111:111@111.111.111.111:21
synchronize local
close
exit


though the command line
WinSCP.exe /script=script.txt

the script runs fine, my only problem is that the process returns instantly and seems like the process runs in another process. I read the docs and forum but I couldn't find why it's behaving like that. I need to get the turn value 0 or !0 to check if everything went fine.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum