Created
          May 30, 2015 02:27 
        
      - 
      
- 
        Save aplocher/2265e5e06c7f47ec85fb to your computer and use it in GitHub Desktop. 
    PowerShell command to clean temp folder (only if the file or folder hasn't been touched in the last 2 days)
  
        
  
    
      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 $env:temp | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(-2)} | Remove-Item -Force -Recurse | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment