Topic "schedule task automation problem"

Author Message
paulbluicouk
[View user's profile]

Joined: 2015-09-16
Posts: 2
Hi People,

I am attempting to create a scheduled task that will pull down all the folders and files created in the last 24 hours.

I have managed to get to a point where I can seeming get all the files in the ftp server, using this...

/log=A:\ALLFTP\winscp.log /command "option batch abort" "option confirm off" "open ftp://user:password@myftpdomainname.co.uk/" "get * A:\ALLFTP" "exit"

However I am having no end of issues trying to get the files and folders created in the last 24hours or 1d, I had expected this to work...

/log=A:\ALLFTP\winscp.log /command "option batch abort" "option confirm off" "open ftp://user:password@myftpdomainname.co.uk/" "get *<1d A:\ALLFTP" "exit"

But again no joy it simple starts to pull down everything.

I would appreciate any help or advice you could offer as I have been going round in circles trying to figure this out.

Thanks Paul
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It should be *>1d, not *<1d.

See https://winscp.net/eng/docs/file_mask#size_time
paulbluicouk
[View user's profile]

Joined: 2015-09-16
Posts: 2
Hi Prikryl,

I appreciate your input but even when I change it as you suggested I still receive everything in the directories, not the files only created in the last 24 hrs.

Thanks Anyway
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I hope you can image that it's difficult to help, if you just tell us "it does not work".

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
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