Forcing batch command window closed

Advertisement

mas985
Joined:
Posts:
8
Location:
California

Forcing batch command window closed

I am running WinSCP in a windows batch file and I was wondering if it is safe to force the command window closed before WinSCP completes the tasks. Will WinSCP end gracefully and not fragment a partially downloaded file?

Reply with quote

Advertisement

mas985
Joined:
Posts:
8
Location:
California

I don't think you understood my question.

I know that the underlying process stops when the windows command window closes. However, what I want to know is exactly how WinSCP closes. When a command window is forced closed, Windows sends the application a close command but how does WinSCP respond to that command while in the middle of transferring a file? Does WinSCP close gracefully so that no files in the process of being downloaded are corrupted?

Reply with quote

mas985
Joined:
Posts:
8
Location:
California

I experimented with this and confirmed that a fragment was left behind and was dated with the current time. I re-ran the script and it seems to download the file again with the correct modified date which is a good thing so at least it corrects the file after the fact.

There are times where I run a long script and for one reason or another, need to cancel it and run it at a different time so I was just curious as to what might happen.

Thanks for your help!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum