waitonreturn doesn't work
Hi, I'm trying to download files from remote server and process it. But the coding execute the next step before the
my coding;
/command
completed.
my coding;
fetch.Run "C:\Windows\System32\cmd.exe /c start C:\""Program Files (x86)""\WinSCP\WinSCP.com /ini=nul /command " + _ """open ftp://xxx:xxx@xxxx"" " + _ """cd \xx\xxx\xxxx\1"" ""get logsc:\tmp\file1"" " + _ """cd \xx\xxx\xxxx\2"" ""get logsc:\tmp\file2"" " + _ """cd \xx\xxx\xxxx\3"" ""get logsc:\tmp\file3"" " + _ """close"" ""exit"" ", windowStyle, waitOnReturn