Re: Delaying scripted task until it completes
Yes, that's expected behavior.
But you are not going to type your command batch on command-line, right?
I assume you will rather run your command batch from some script like batch file or PowerShell or whatever. All those will (or can) wait for WinSCP to finish.
Anyway, if you really want to type commands on command prompt (and even if you are going to use batch file or PowerShell), you should not use
See https://winscp.net/eng/docs/executables
But you are not going to type your command batch on command-line, right?
I assume you will rather run your command batch from some script like batch file or PowerShell or whatever. All those will (or can) wait for WinSCP to finish.
Anyway, if you really want to type commands on command prompt (and even if you are going to use batch file or PowerShell), you should not use
winscp.exe
, you should use winscp.com
.
cmd.exe
will not only wait for winscp.com
to finish. You will also see what WinSCP is doing, what you don't with your current command.
See https://winscp.net/eng/docs/executables