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: FileMAsk

You are in PowerShell, you have full "power" of that language:

$lastMonth = (Get-Date).AddMonths(-1)
$firstDayOfLastMonth =
    Get-Date -Year $lastMonth.Year -Month $lastMonth.Month -Day 1
$timestamp = $firstDayOfLastMonth.ToString("yyyy-MM-dd")
$filemask = "*>=" + $timestamp
 
$transferOptions.FileMask = $filemask
Mathieu.Thomas

FileMAsk

Hello I would like to know if there is a mask to download all the files from last month.

I have this, but it's not for a whole month...


$transferOptions.FileMask = "*> = 30D"