Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Rirbeiro

Thank you Martin.

It has worked very well.

:lol:
martin

Re: Timestamp get current date and hour

Rirbeiro wrote:

Is it possible to use the "sinchronize" with "-filemask", just to sinchronize the data files on the current date?

Yes, again, the same way.
martin

Anonymous wrote:

The setting on filemask on my script is (-filemask=*>=%TIMESTAMP#yyyy-mm-dd%). This script is working, download the files that has been created on current date.

I would like to download the files by current date and last hour. Is it possible?

Sure. The same way:
-filemask="*>=%TIMESTAMP#yyyy-mm-dd hh:00:00%"

Though you may want to use a relative time:
-filemask="*>=1H"

See
https://winscp.net/eng/docs/file_mask#size_time
https://winscp.net/eng/docs/scripting#timestamp
Rirbeiro

Timestamp get current date and hour

Hi Martin,

Is it possible to use the "sinchronize" with "-filemask", just to sinchronize the data files on the current date?

Best Regards,
Guest

Hi Martin,

The setting on filemask on my script is (-filemask=*>=%TIMESTAMP#yyyy-mm-dd%). This script is working, download the files that has been created on current date.

I would like to download the files by current date and last hour. Is it possible?

Thank you
martin

Re: Timestamp get current date and hour

What does it mean "get the file by current date and hour"?
Rirbeiro

Timestamp get current date and hour

Hi Guys,

I have created a script to get the files from remote to local directory by current date, as below:

"get -filemask=*>=%TIMESTAMP#yyyy-mm-dd% /vv447Q/pdfdanfe/* C:\pdfxml_totvs\%TIMESTAMP#yyyymmdd%\"

Is it possible get the file by current date and hour?

Best Regards,

Ricardo Ribeiro