Created
          October 1, 2009 21:34 
        
      - 
      
- 
        Save agross/199255 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Get-ChildItem -recurse ` | |
| | Where-Object { $_.PsIsContainer } ` | |
| | ForEach-Object { Get-ChildItem -path $_.FullName | Sort-Object -property LastWriteTime | Select-Object -last 1 } ` | |
| | Foreach-Object { Write-Host $_.Directory; [System.IO.Directory]::SetLastWriteTime($_.Directory, $_.LastWriteTime) } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment