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: Re: schedule task automation problem

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.
paulbluicouk

Re: Re: schedule task automation problem

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
paulbluicouk

schedule task automation problem

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