To add statements to the function, type each statement on a separate line, or use a semi-colon ;
to separate the statements.
For example, the following function finds all .jpg
files in the current user's directories that were changed after the start date.
function Get-NewPix
{ $start = Get-Date -Month 1 -Day 1 -Year 2010 $allpix = Get-ChildItem -Path $env:UserProfile\*.jpg -Recurse $allpix | Where-Object {$_.LastWriteTime -gt $Start}
}
To add statements to the function, type each statement on a separate line, or use a semi-colon ;
to separate the statements.
For example, the following function finds all .jpg
files in the current user's directories that were changed after the start date.
function Get-NewPix
{ $start = Get-Date -Month 1 -Day 1 -Year 2010 $allpix = Get-ChildItem -Path $env:UserProfile\*.jpg -Recurse $allpix | Where-Object {$_.LastWriteTime -gt $Start}
}
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |