$infos
= @{}
$infos
.Path =
'c:Windows'
$infos
.Recurse =
$true
$infos
.
Filter
=
'*.log'
$infos
.ErrorAction =
'SilentlyContinue'
$infos
.Remove(
'Recurse'
)
dir
@infos
dir c:windows -rexurse -filter ‘*.log’ -erroraction silentlycontinue
$infos
= @{}
$infos
.Path =
'c:Windows'
$infos
.Recurse =
$true
$infos
.
Filter
=
'*.log'
$infos
.ErrorAction =
'SilentlyContinue'
$infos
.Remove(
'Recurse'
)
dir
@infos