Transfer more than 1 file type to different folders

Advertisement

jeffwest2
Joined:
Posts:
2
Location:
England

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??

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum