Skip to content

Instantly share code, notes, and snippets.

@zhangw
Created January 24, 2013 04:53
Show Gist options
  • Select an option

  • Save zhangw/4617759 to your computer and use it in GitHub Desktop.

Select an option

Save zhangw/4617759 to your computer and use it in GitHub Desktop.
From the specific root dictionary,only include the spcific dicts,get the fullname of files using filter "CreationTime","LastWriteTime","!PSIsContainer" recursively.
$files = Get-Item -Path C:\SourceCode\PMDProj\PDMApplication\* -Include "bin","Scripts","Views","Content" `
| Get-ChildItem -Recurse -Force -Exclude "*.pdb" -ErrorAction:SilentlyContinue `
| Where {(($_.CreationTime -gt "2013-1-24") -or ($_.LastWriteTime -gt "2013-1-24")) -and !$_.PSIsContainer} `
| Select FullName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment