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

Guest

Cheers for that, will give it a go.
martin

Re: Transfer more than 1 file type to different folders

Remove the space before <1D. Also I think the backslash should not be there.
winscp.com /Command "Option batch abort" "open PO_HomeInsurance" "get HIHL*.csv<1D" "Close" "Exit"


Or add double double-quotes around the whole mask:
winscp.com /Command "Option batch abort" "open PO_HomeInsurance" "get ""HIHL*.csv <1D""" "Close" "Exit"


See https://winscp.net/eng/docs/file_mask#size_time
jeffwest2

Transfer more than 1 file type to different folders

Trying to move two separate files to two folders which are supposed to be the latest ones

In one file I have the following

winscp.com /Command "Option batch abort" "open PO_HomeInsurance" "get HIHL*.csv <1D\" "Close" "Exit"


The other is

winscp.com /Command "Option batch abort" "open PO_LifeInsurance" "get LIHL*.csv <1D\" "Close" "Exit"


However this doesn't work, the only way this works is if I add
LIHL*.csv <1D
into the Transfer setting file mask, but this is global so it isn't what I want.

What am I doing wrong??