header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

get-childitem
Last Post 14 May 2008 12:40 PM by halr9000. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
themaxxUser is Offline
New Member
New Member
Posts:3
Avatar

--
14 May 2008 07:20 AM  

can i create a get-childitem that selects me the contents of all "test" folders on my harddrive?

halr9000User is Offline
PowerShell MVP, Site Admin
Basic Member
Basic Member
Posts:334
Avatar

--
14 May 2008 12:40 PM  

Sure.

76# Get-ChildItem -Recurse | ? { $_.PSIsContainer -and $_.Name -eq 'test' } | gci


    Directory: Microsoft.PowerShell.Core\FileSystem::C:\cygwin\lib\perl5\5.8\Test


Mode           LastWriteTime       Length Name
----           -------------       ------ ----
d----      6/8/2007 11:36 AM        <DIR> Harness
d----      6/8/2007 11:36 AM        <DIR> Simple
-a---    12/29/2005 10:05 PM        35503 Builder.pm
-a---    12/29/2005 10:05 PM        29940 Harness.pm
-a---    12/29/2005 10:05 PM        36256 More.pm
-a---    12/29/2005 10:05 PM         6604 Simple.pm
-a---    12/29/2005 10:05 PM        18948 Tutorial.pod
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast
Author, TechProsaic
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer