Topic "Transfer more than 1 file type to different folders"

Author Message
jeffwest2
[View user's profile]

Joined: 2014-09-24
Posts: 2
Location: England
Trying to move two separate files to two folders which are supposed to be the latest ones

In one file I have the following

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


The other is

Code:
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
Code:
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??
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Remove the space before <1D. Also I think the backslash should not be there.
Code:
winscp.com /Command "Option batch abort" "open PO_HomeInsurance" "get HIHL*.csv<1D" "Close" "Exit"


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


See http://winscp.net/eng/docs/file_mask#size_time
_________________
Martin Prikryl
Guest




Cheers for that, will give it a go.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License