Re: FTP - Rewrite and Copy
                Looks mostly good. Do you have any problem?
Two notes:
        Two notes:
- It's option confirm, notoption config. Though those twooptioncommands are not really needed in recent versions of WinSCP, as they are defaults for script.
- You do not need the rm, as theputoverwrites the existing file.