PowerShell code:
PS C:Usersuser> Get-ChildItem -Path 'c: 00'
Directory: C: 00
Mode LastWriteTime Length Name
—- ————- —— —-
d—- 05.02.2012 13:29 abc
d—- 05.02.2012 13:38 def
-a— 05.02.2012 19:08 0 a1.txt
-a— 05.02.2012 19:08 0 a2.txt
-a— 05.02.2012 19:08 0 b1.txt
-a— 05.02.2012 19:08 0 b2.txt
PS C:Usersuser> Get-ChildItem -Path 'c: 00' -Include '*.txt'
PS C:Usersuser>
Why I receive incorrect result with 'include' parameter? I expect that will be found all txt files.
If I write it:
PS C:Usersuser> Get-ChildItem -Path 'c: 00' -Include '*.txt' -Recurse
then I receive txt files, but recursive sample isn't necessary to me… 🙁