Created
December 2, 2016 02:41
-
-
Save junxy/f3d68499f3c5125f4618817ca87c8ae7 to your computer and use it in GitHub Desktop.
清理 windows temp cab_* 临时文件? PS: 这些文件不断生成占用C盘空间,暂时没找到方法,删除也没发现有什么问题,只好先用脚本定期清理一下。
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
| Set-Location "C:\Windows\Temp" | |
| Get-ChildItem -Filter "cab_*" | Where-Object {$_.length -gt 1 } | |
| Get-ChildItem -Filter "cab_*" | Where-Object {$_.length -gt 1 } | Remove-Item -Force | |
| Write-Host "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment