Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: FTP - Rewrite and Copy

Looks mostly good. Do you have any problem?

Two notes:

  • It's option confirm, not option config. Though those two option commands are not really needed in recent versions of WinSCP, as they are defaults for script.
  • You do not need the rm, as the put overwrites the existing file.
Wiwa

FTP - Rewrite and Copy

How can change this string.
I would have:

  • rewrite a file if exists
  • copy file if does not exist

Now I have:
option batch abort
option config off
open ftp://User:Pass@ftpserver/
rm /test.xml
put C:\test.xml /
exit