GetFiles() with specific last modified date

Advertisement

Mocoso
Guest

GetFiles() with specific last modified date

How can I GetFiles() with a specific last modified date (e.g. 2013-03-17)?

Can I use something like:
ls -l /var/log/ | grep 2013-03-17
with WinSCP.dll?

Thank you!

Reply with quote

Advertisement

Mocoso
Guest

Re: GetFiles() with specific last modified date

I have tried various masks to get a specific date (e.g. 2013-03-17) with no success. Can you provide some insight?

Examples:
 $transferOptions.FileMask  = "access*.log*<2013-03-18;access*.log*>2013-03-16"
or
 $transferOptions.FileMask  = "<2013-03-18;>2013-03-16"

I am getting all files.

Thank you.[/code]

Reply with quote

martin
Site Admin
martin avatar

Re: GetFiles() with specific last modified date

$transferOptions.FileMask = "access*.log*>=2013-03-17<2013-03-18"[/code]

Reply with quote

Advertisement

You can post new topics in this forum