✅ 一行命令版(复制直接用,全自动)Windows 系统版
Write-Host "正在释放内存..." -ForegroundColor Cyan; Get-Process | Where-Object {$_.WorkingSet64 -gt 0} | ForEach-Object {try{$_.MinWorkingSet=$_.WorkingSet64;$_.MaxWorkingSet=$_.WorkingSet64}catch{}}; wmic memorycache delete 2>&1 | Out-Null; Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue; Start-Process explorer; Write-Host "✅ 内存释放完成!" -ForegroundColor Green

以下是修复版本
Write-Host "正在释放内存..." -ForegroundColor Cyan;Get-Process | Where-Object {$_.WorkingSet64 -gt 10MB} | ForEach-Object {try{$_.MinWorkingSet = 1MB;$_.MaxWorkingSet = $_.WorkingSet64}catch{}};Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue;Start-Process explorer;Write-Host "✅ 内存释放完成!" -ForegroundColor Green
© 版权声明
THE END
暂无评论内容