YaliPro commited on
Commit
fe1a51c
·
verified ·
1 Parent(s): 30ebf4b

Upload NovalaOS.bat

Browse files
Files changed (1) hide show
  1. NovalaOS.bat +42 -45
NovalaOS.bat CHANGED
@@ -2450,9 +2450,6 @@ echo ATK Clear Safari cache
2450
  PowerShell -ExecutionPolicy Unrestricted -Command "$pathGlobPattern = "^""%USERPROFILE%\Local Settings\Application Data\Apple Computer\Safari\Cache.db"^""; $expandedPath = [System.Environment]::ExpandEnvironmentVariables($pathGlobPattern); Write-Host "^""Searching for items matching pattern: `"^""$($expandedPath)`"^""."^""; $deletedCount = 0; $failedCount = 0; $skippedCount = 0; $foundAbsolutePaths = @(); try { $foundAbsolutePaths += @(; Get-Item -Path $expandedPath -ErrorAction Stop | Select-Object -ExpandProperty FullName; ); } catch [System.Management.Automation.ItemNotFoundException] { <# Swallow, do not run `Test-Path` before, it's unreliable for globs requiring extra permissions #>; }; $foundAbsolutePaths = $foundAbsolutePaths | Select-Object -Unique | Sort-Object -Property { $_.Length } -Descending; if (!$foundAbsolutePaths) { Write-Host 'Skipping, no items available.'; exit 0; }; Write-Host "^""Initiating processing of $($foundAbsolutePaths.Count) items from `"^""$expandedPath`"^""."^""; foreach ($path in $foundAbsolutePaths) { if (Test-Path -Path $path -PathType Container) { Write-Host "^""Skipping, the path is not a file but a folder: $($path)."^""; $skippedCount++; continue; }; if (-not (Test-Path $path)) { <# Re-check existence as prior deletions might remove subsequent items (e.g., subdirectories). #>; Write-Host "^""Successfully deleted: $($path) (already deleted)."^""; $deletedCount++; continue; }; try { Remove-Item -Path $path -Force -Recurse -ErrorAction Stop; $deletedCount++; Write-Host "^""Successfully deleted: $($path)"^""; } catch { $failedCount++; Write-Warning "^""Unable to delete $($path): $_"^""; }; }; if ($skippedCount -gt 0) { Write-Host "^""Skipped $($skippedCount) items."^""; }; Write-Host "^""Successfully deleted $($deletedCount) items."^""; if ($failedCount -gt 0) { Write-Warning "^""Failed to delete $($failedCount) items."^""; }"
2451
  PowerShell -ExecutionPolicy Unrestricted -Command "$pathGlobPattern = "^""%LOCALAPPDATA%\Apple Computer\Safari\Cache.db"^""; $expandedPath = [System.Environment]::ExpandEnvironmentVariables($pathGlobPattern); Write-Host "^""Searching for items matching pattern: `"^""$($expandedPath)`"^""."^""; $deletedCount = 0; $failedCount = 0; $skippedCount = 0; $foundAbsolutePaths = @(); try { $foundAbsolutePaths += @(; Get-Item -Path $expandedPath -ErrorAction Stop | Select-Object -ExpandProperty FullName; ); } catch [System.Management.Automation.ItemNotFoundException] { <# Swallow, do not run `Test-Path` before, it's unreliable for globs requiring extra permissions #>; }; $foundAbsolutePaths = $foundAbsolutePaths | Select-Object -Unique | Sort-Object -Property { $_.Length } -Descending; if (!$foundAbsolutePaths) { Write-Host 'Skipping, no items available.'; exit 0; }; Write-Host "^""Initiating processing of $($foundAbsolutePaths.Count) items from `"^""$expandedPath`"^""."^""; foreach ($path in $foundAbsolutePaths) { if (Test-Path -Path $path -PathType Container) { Write-Host "^""Skipping, the path is not a file but a folder: $($path)."^""; $skippedCount++; continue; }; if (-not (Test-Path $path)) { <# Re-check existence as prior deletions might remove subsequent items (e.g., subdirectories). #>; Write-Host "^""Successfully deleted: $($path) (already deleted)."^""; $deletedCount++; continue; }; try { Remove-Item -Path $path -Force -Recurse -ErrorAction Stop; $deletedCount++; Write-Host "^""Successfully deleted: $($path)"^""; } catch { $failedCount++; Write-Warning "^""Unable to delete $($path): $_"^""; }; }; if ($skippedCount -gt 0) { Write-Host "^""Skipped $($skippedCount) items."^""; }; Write-Host "^""Successfully deleted $($deletedCount) items."^""; if ($failedCount -gt 0) { Write-Warning "^""Failed to delete $($failedCount) items."^""; }"
2452
 
2453
- echo ATK Installing Brave
2454
- PowerShell -ExecutionPolicy Unrestricted -Command "winget install brave.brave --source winget --accept-package-agreements"
2455
-
2456
  echo ATK Enabling Show File Extensions.
2457
  reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f >nul 2>&1
2458
 
@@ -3711,7 +3708,7 @@ reg add "HKLM\SYSTEM\CurrentControlSet\Control" /v "SvcHostSplitThresholdInKB" /
3711
  taskkill /f /im explorer.exe >nul 2>&1
3712
 
3713
  cls
3714
- echo ATK Cleaning: %TEMP%
3715
  if exist "%TEMP%\*" (
3716
  del /f /s /q "%TEMP%\*" >nul 2>&1
3717
  for /d %%i in ("%TEMP%\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3720,7 +3717,7 @@ if exist "%TEMP%\*" (
3720
 
3721
 
3722
  cls
3723
- echo ATK Cleaning: C:\Windows\Temp
3724
  if exist "C:\Windows\Temp\*" (
3725
  del /f /s /q "C:\Windows\Temp\*" >nul 2>&1
3726
  for /d %%i in ("C:\Windows\Temp\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3729,7 +3726,7 @@ if exist "C:\Windows\Temp\*" (
3729
 
3730
 
3731
  cls
3732
- echo ATK Cleaning: AppData\Local\Temp
3733
  if exist "%USERPROFILE%\AppData\Local\Temp\*" (
3734
  del /f /s /q "%USERPROFILE%\AppData\Local\Temp\*" >nul 2>&1
3735
  for /d %%i in ("%USERPROFILE%\AppData\Local\Temp\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3738,7 +3735,7 @@ if exist "%USERPROFILE%\AppData\Local\Temp\*" (
3738
 
3739
 
3740
  cls
3741
- echo ATK Cleaning: C:\Windows\Prefetch
3742
  if exist "C:\Windows\Prefetch\*" (
3743
  del /f /s /q "C:\Windows\Prefetch\*" >nul 2>&1
3744
  )
@@ -3746,7 +3743,7 @@ if exist "C:\Windows\Prefetch\*" (
3746
 
3747
 
3748
  cls
3749
- echo ATK Cleaning: C:\Windows\SoftwareDistribution\Download
3750
  if exist "C:\Windows\SoftwareDistribution\Download\*" (
3751
  del /f /s /q "C:\Windows\SoftwareDistribution\Download\*" >nul 2>&1
3752
  for /d %%i in ("C:\Windows\SoftwareDistribution\Download\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3755,7 +3752,7 @@ if exist "C:\Windows\SoftwareDistribution\Download\*" (
3755
 
3756
 
3757
  cls
3758
- echo ATK Cleaning: INetCache
3759
  if exist "%LOCALAPPDATA%\Microsoft\Windows\INetCache\*" (
3760
  del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\INetCache\*" >nul 2>&1
3761
  for /d %%i in ("%LOCALAPPDATA%\Microsoft\Windows\INetCache\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3764,7 +3761,7 @@ if exist "%LOCALAPPDATA%\Microsoft\Windows\INetCache\*" (
3764
 
3765
 
3766
  cls
3767
- echo ATK Cleaning: WebCache
3768
  if exist "%LOCALAPPDATA%\Microsoft\Windows\WebCache\*" (
3769
  del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\WebCache\*" >nul 2>&1
3770
  for /d %%i in ("%LOCALAPPDATA%\Microsoft\Windows\WebCache\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3773,7 +3770,7 @@ if exist "%LOCALAPPDATA%\Microsoft\Windows\WebCache\*" (
3773
 
3774
 
3775
  cls
3776
- echo ATK Cleaning: C:\Windows\Logs\CBS
3777
  if exist "C:\Windows\Logs\CBS\*" (
3778
  del /f /s /q "C:\Windows\Logs\CBS\*" >nul 2>&1
3779
  )
@@ -3781,7 +3778,7 @@ if exist "C:\Windows\Logs\CBS\*" (
3781
 
3782
 
3783
  cls
3784
- echo ATK Cleaning: C:\Windows\Logs\DISM
3785
  if exist "C:\Windows\Logs\DISM\*" (
3786
  del /f /s /q "C:\Windows\Logs\DISM\*" >nul 2>&1
3787
  )
@@ -3789,7 +3786,7 @@ if exist "C:\Windows\Logs\DISM\*" (
3789
 
3790
 
3791
  cls
3792
- echo ATK Cleaning: CrashDumps
3793
  if exist "%LOCALAPPDATA%\CrashDumps\*" (
3794
  del /f /s /q "%LOCALAPPDATA%\CrashDumps\*" >nul 2>&1
3795
  )
@@ -3797,7 +3794,7 @@ if exist "%LOCALAPPDATA%\CrashDumps\*" (
3797
 
3798
 
3799
  cls
3800
- echo ATK Cleaning: WER
3801
  if exist "%LOCALAPPDATA%\Microsoft\Windows\WER\*" (
3802
  del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\WER\*" >nul 2>&1
3803
  for /d %%i in ("%LOCALAPPDATA%\Microsoft\Windows\WER\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3808,7 +3805,7 @@ if exist "%ProgramData%\Microsoft\Windows\WER\Temp" rmdir /s /q "%ProgramData%\M
3808
 
3809
 
3810
  cls
3811
- echo ATK Cleaning: C:\Windows\Minidump
3812
  if exist "C:\Windows\Minidump\*" (
3813
  del /f /s /q "C:\Windows\Minidump\*" >nul 2>&1
3814
  )
@@ -3816,7 +3813,7 @@ if exist "C:\Windows\Minidump\*" (
3816
 
3817
 
3818
  cls
3819
- echo ATK Cleaning: C:\Windows\Panther
3820
  if exist "C:\Windows\Panther\*" (
3821
  del /f /s /q "C:\Windows\Panther\*" >nul 2>&1
3822
  for /d %%i in ("C:\Windows\Panther\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
@@ -3825,7 +3822,7 @@ if exist "C:\Windows\Panther\*" (
3825
 
3826
 
3827
  cls
3828
- echo ATK Cleaning: Steam Cache
3829
  taskkill /f /im steam.exe >nul 2>&1
3830
  if exist "%LOCALAPPDATA%\Steam\htmlcache" rd /s /q "%LOCALAPPDATA%\Steam\htmlcache" >nul 2>&1
3831
  if exist "%ProgramFiles(x86)%\Steam\steamapps\shadercache" rd /s /q "%ProgramFiles(x86)%\Steam\steamapps\shadercache" >nul 2>&1
@@ -3837,7 +3834,7 @@ if exist "%ProgramFiles(x86)%\Steam\steamapps\downloading" rmdir /s /q "%Program
3837
  powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c @echo off & cls & start steam://openurl/https://store.steampowered.com/' -WindowStyle Hidden" >nul 2>&1
3838
 
3839
  cls
3840
- echo ATK Cleaning: Discord Cache
3841
  taskkill /f /im discord.exe >nul 2>&1
3842
  set "discord_cache=%APPDATA%\discord" >nul 2>&1
3843
  if exist "%discord_cache%\Cache" rd /s /q "%discord_cache%\Cache" >nul 2>&1
@@ -3847,7 +3844,7 @@ if exist "%discord_cache%\GPUCache" rd /s /q "%discord_cache%\GPUCache" >nul 2>&
3847
  powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c @echo off & cls & start discord://' -WindowStyle Hidden" >nul 2>&1
3848
 
3849
  cls
3850
- echo ATK Cleaning: Google Chrome Cache
3851
  taskkill /f /im chrome.exe >nul 2>&1
3852
  if exist "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache" rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache" >nul 2>&1
3853
  if exist "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Code Cache" rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Code Cache" >nul 2>&1
@@ -3855,7 +3852,7 @@ if exist "%LOCALAPPDATA%\Google\Chrome\User Data\Default\GPUCache" rmdir /s /q "
3855
 
3856
 
3857
  cls
3858
- echo ATK Cleaning: Opera/Opera GX Cache
3859
  taskkill /f /im opera.exe >nul 2>&1
3860
  taskkill /f /im opera_gx.exe >nul 2>&1
3861
  if exist "%LOCALAPPDATA%\Opera Software\Opera Stable\Cache" rmdir /s /q "%LOCALAPPDATA%\Opera Software\Opera Stable\Cache" >nul 2>&1
@@ -3863,7 +3860,7 @@ if exist "%LOCALAPPDATA%\Opera Software\Opera GX Stable\Cache" rmdir /s /q "%LOC
3863
 
3864
 
3865
  cls
3866
- echo ATK Cleaning: VS Code Cache
3867
  taskkill /f /im Code.exe >nul 2>&1
3868
  if exist "%APPDATA%\Code\Cache" rmdir /s /q "%APPDATA%\Code\Cache" >nul 2>&1
3869
  if exist "%APPDATA%\Code\CachedData" rmdir /s /q "%APPDATA%\Code\CachedData" >nul 2>&1
@@ -3872,7 +3869,7 @@ if exist "%APPDATA%\Code\CachedExtensions" rmdir /s /q "%APPDATA%\Code\CachedExt
3872
 
3873
 
3874
  cls
3875
- echo ATK Cleaning: Spotify Cache
3876
  taskkill /f /im spotify.exe >nul 2>&1
3877
  if exist "%LOCALAPPDATA%\Spotify\ShaderCache" rmdir /s /q "%LOCALAPPDATA%\Spotify\ShaderCache" >nul 2>&1
3878
  if exist "%LOCALAPPDATA%\Spotify\GrShaderCache" rmdir /s /q "%LOCALAPPDATA%\Spotify\GrShaderCache" >nul 2>&1
@@ -3883,7 +3880,7 @@ if exist "%LOCALAPPDATA%\Spotify\component_crx_cache" rmdir /s /q "%LOCALAPPDATA
3883
  powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c @echo off & cls & start spotify://' -WindowStyle Hidden" >nul 2>&1
3884
 
3885
  cls
3886
- echo ATK Cleaning: Brave Browser Cache
3887
  taskkill /f /im brave.exe >nul 2>&1
3888
  if exist "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Cache" rmdir /s /q "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Cache" >nul 2>&1
3889
  if exist "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Code Cache" rmdir /s /q "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Code Cache" >nul 2>&1
@@ -3891,7 +3888,7 @@ if exist "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\GPUCache"
3891
 
3892
 
3893
  cls
3894
- echo ATK Cleaning: Microsoft Edge Cache
3895
  taskkill /f /im msedge.exe >nul 2>&1
3896
  if exist "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Cache" rmdir /s /q "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Cache" >nul 2>&1
3897
  if exist "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Code Cache" rmdir /s /q "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Code Cache" >nul 2>&1
@@ -3899,7 +3896,7 @@ if exist "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\GPUCache" rmdir /s /q
3899
 
3900
 
3901
  cls
3902
- echo ATK Cleaning: Telegram Desktop Cache
3903
  taskkill /f /im Telegram.exe >nul 2>&1
3904
  if exist "%APPDATA%\Telegram Desktop\tdata\user_data\cache" rd /s /q "%APPDATA%\Telegram Desktop\tdata\user_data\cache" >nul 2>&1
3905
  if exist "%APPDATA%\Telegram Desktop\tdata\temp" rd /s /q "%APPDATA%\Telegram Desktop\tdata\temp" >nul 2>&1
@@ -3907,23 +3904,23 @@ if exist "%APPDATA%\Telegram Desktop\tdata\user_data\media_cache" rd /s /q "%APP
3907
 
3908
 
3909
  cls
3910
- echo ATK Cleaning: Thumbnail Cache
3911
  if exist "%LOCALAPPDATA%\Microsoft\Windows\Explorer\thumbcache_*.db" del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\Explorer\thumbcache_*.db" >nul 2>&1
3912
 
3913
 
3914
  cls
3915
- echo ATK Cleaning: Font Cache
3916
  if exist "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*.dat" del /f /q "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*.dat" >nul 2>&1
3917
  if exist "%WinDir%\System32\FNTCACHE.DAT" del /f /q "%WinDir%\System32\FNTCACHE.DAT" >nul 2>&1
3918
 
3919
 
3920
  cls
3921
- echo ATK Cleaning: Recycle Bin
3922
  if exist "C:\$Recycle.Bin" rd /s /q "C:\$Recycle.Bin" >nul 2>&1
3923
 
3924
 
3925
  cls
3926
- echo ATK Cleaning: Delivery Optimization Cache
3927
  if exist "C:\ProgramData\Microsoft\Windows\DeliveryOptimization\Cache" (
3928
  rd /s /q "C:\ProgramData\Microsoft\Windows\DeliveryOptimization\Cache" >nul 2>&1
3929
  )
@@ -3931,7 +3928,7 @@ if exist "C:\ProgramData\Microsoft\Windows\DeliveryOptimization\Cache" (
3931
 
3932
 
3933
  cls
3934
- echo ATK Cleaning: Windows Update Cache
3935
  net stop wuauserv >nul 2>&1
3936
  net stop bits >nul 2>&1
3937
  if exist "C:\Windows\SoftwareDistribution\Download" (
@@ -3946,7 +3943,7 @@ timeout /t 2 >nul
3946
 
3947
 
3948
  cls
3949
- echo ATK Cleaning: Microsoft Store Cache
3950
  taskkill /f /im WinStore.App.exe >nul 2>&1
3951
  if exist "%LOCALAPPDATA%\Packages" (
3952
  for /d %%i in ("%LOCALAPPDATA%\Packages\Microsoft.WindowsStore_*") do (
@@ -3958,7 +3955,7 @@ if exist "%LOCALAPPDATA%\Packages" (
3958
 
3959
 
3960
  cls
3961
- echo ATK Cleaning: NVIDIA / AMD Shader Cache
3962
  if exist "%LOCALAPPDATA%\NVIDIA\DXCache" rd /s /q "%LOCALAPPDATA%\NVIDIA\DXCache" >nul 2>&1
3963
  if exist "%LOCALAPPDATA%\NVIDIA\GLCache" rd /s /q "%LOCALAPPDATA%\NVIDIA\GLCache" >nul 2>&1
3964
  if exist "%LOCALAPPDATA%\AMD\DxcCache" rd /s /q "%LOCALAPPDATA%\AMD\DxcCache" >nul 2>&1
@@ -3966,32 +3963,32 @@ if exist "%LOCALAPPDATA%\AMD\DxcCache" rd /s /q "%LOCALAPPDATA%\AMD\DxcCache" >n
3966
 
3967
 
3968
  cls
3969
- echo ATK Cleaning: Windows Error Reporting
3970
  if exist "%ProgramData%\Microsoft\Windows\WER\ReportQueue" rd /s /q "%ProgramData%\Microsoft\Windows\WER\ReportQueue" >nul 2>&1
3971
  if exist "%ProgramData%\Microsoft\Windows\WER\ReportArchive" rd /s /q "%ProgramData%\Microsoft\Windows\WER\ReportArchive" >nul 2>&1
3972
 
3973
 
3974
 
3975
  cls
3976
- echo ATK Cleaning: LiveKernelReports
3977
  if exist "C:\Windows\LiveKernelReports" rd /s /q "C:\Windows\LiveKernelReports" >nul 2>&1
3978
 
3979
 
3980
 
3981
  cls
3982
- echo ATK Cleaning: Windows.old
3983
  if exist "C:\Windows.old" rd /s /q "C:\Windows.old" >nul 2>&1
3984
  timeout /t 2 >nul
3985
 
3986
 
3987
  cls
3988
- echo ATK Cleaning: $GetCurrent
3989
  if exist "C:\$GetCurrent" rd /s /q "C:\$GetCurrent" >nul 2>&1
3990
 
3991
 
3992
 
3993
  cls
3994
- echo ATK Cleaning: Previous Windows installations leftovers
3995
  if exist "C:\Windows10Upgrade" rd /s /q "C:\Windows10Upgrade" >nul 2>&1
3996
  if exist "C:\$WINDOWS.~BT" rd /s /q "C:\$WINDOWS.~BT" >nul 2>&1
3997
  if exist "C:\$WINDOWS.~WS" rd /s /q "C:\$WINDOWS.~WS" >nul 2>&1
@@ -3999,7 +3996,7 @@ if exist "C:\$WINDOWS.~WS" rd /s /q "C:\$WINDOWS.~WS" >nul 2>&1
3999
 
4000
 
4001
  cls
4002
- echo ATK Cleaning: Epic Games Cache
4003
  taskkill /f /im EpicGamesLauncher.exe >nul 2>&1
4004
  if exist "%LOCALAPPDATA%\EpicGamesLauncher\Saved\webcache" rd /s /q "%LOCALAPPDATA%\EpicGamesLauncher\Saved\webcache" >nul 2>&1
4005
  if exist "%LOCALAPPDATA%\EpicGamesLauncher\Saved\Logs" del /f /s /q "%LOCALAPPDATA%\EpicGamesLauncher\Saved\Logs\*" >nul 2>&1
@@ -4007,7 +4004,7 @@ if exist "%LOCALAPPDATA%\EpicGamesLauncher\Saved\Logs" del /f /s /q "%LOCALAPPDA
4007
 
4008
 
4009
  cls
4010
- echo ATK Cleaning: Battle.net Cache
4011
  taskkill /f /im Battle.net.exe >nul 2>&1
4012
  taskkill /f /im Agent.exe >nul 2>&1
4013
  if exist "%ProgramData%\Battle.net\Cache" rd /s /q "%ProgramData%\Battle.net\Cache" >nul 2>&1
@@ -4016,33 +4013,33 @@ if exist "%LOCALAPPDATA%\Battle.net\Cache" rd /s /q "%LOCALAPPDATA%\Battle.net\C
4016
 
4017
 
4018
  cls
4019
- echo ATK Cleaning: Windows Defender Logs
4020
  if exist "%ProgramData%\Microsoft\Windows Defender\Scans\History" rd /s /q "%ProgramData%\Microsoft\Windows Defender\Scans\History" >nul 2>&1
4021
  if exist "%ProgramData%\Microsoft\Windows Defender\Support" del /f /s /q "%ProgramData%\Microsoft\Windows Defender\Support\*" >nul 2>&1
4022
 
4023
 
4024
 
4025
  cls
4026
- echo ATK Cleaning: Edge WebView2 Cache
4027
  if exist "%LOCALAPPDATA%\Microsoft\EdgeWebView" rd /s /q "%LOCALAPPDATA%\Microsoft\EdgeWebView" >nul 2>&1
4028
 
4029
 
4030
 
4031
  cls
4032
- echo ATK Cleaning: Unity Cache
4033
  if exist "%APPDATA%\Unity\Cache" rd /s /q "%APPDATA%\Unity\Cache" >nul 2>&1
4034
  if exist "%LOCALAPPDATA%\Unity\cache" rd /s /q "%LOCALAPPDATA%\Unity\cache" >nul 2>&1
4035
 
4036
 
4037
 
4038
  cls
4039
- echo ATK Cleaning: Unreal Engine Cache
4040
  if exist "%LOCALAPPDATA%\UnrealEngine\Common\DerivedDataCache" rd /s /q "%LOCALAPPDATA%\UnrealEngine\Common\DerivedDataCache" >nul 2>&1
4041
 
4042
 
4043
 
4044
  cls
4045
- echo ATK Cleaning: NVIDIA Driver Installer Cache
4046
  if exist "C:\ProgramData\NVIDIA Corporation\Downloader" rd /s /q "C:\ProgramData\NVIDIA Corporation\Downloader" >nul 2>&1
4047
 
4048
  start explorer.exe >nul 2>&1
@@ -4127,7 +4124,7 @@ for /L %%i in (1,1,22) do (
4127
  )
4128
  )
4129
 
4130
- echo ATK GODMODE
4131
  set "folder1Name=God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}"
4132
  set "desktop1Path=%USERPROFILE%\Desktop"
4133
  mkdir "%desktop1Path%\%folder1Name%" >nul
 
2450
  PowerShell -ExecutionPolicy Unrestricted -Command "$pathGlobPattern = "^""%USERPROFILE%\Local Settings\Application Data\Apple Computer\Safari\Cache.db"^""; $expandedPath = [System.Environment]::ExpandEnvironmentVariables($pathGlobPattern); Write-Host "^""Searching for items matching pattern: `"^""$($expandedPath)`"^""."^""; $deletedCount = 0; $failedCount = 0; $skippedCount = 0; $foundAbsolutePaths = @(); try { $foundAbsolutePaths += @(; Get-Item -Path $expandedPath -ErrorAction Stop | Select-Object -ExpandProperty FullName; ); } catch [System.Management.Automation.ItemNotFoundException] { <# Swallow, do not run `Test-Path` before, it's unreliable for globs requiring extra permissions #>; }; $foundAbsolutePaths = $foundAbsolutePaths | Select-Object -Unique | Sort-Object -Property { $_.Length } -Descending; if (!$foundAbsolutePaths) { Write-Host 'Skipping, no items available.'; exit 0; }; Write-Host "^""Initiating processing of $($foundAbsolutePaths.Count) items from `"^""$expandedPath`"^""."^""; foreach ($path in $foundAbsolutePaths) { if (Test-Path -Path $path -PathType Container) { Write-Host "^""Skipping, the path is not a file but a folder: $($path)."^""; $skippedCount++; continue; }; if (-not (Test-Path $path)) { <# Re-check existence as prior deletions might remove subsequent items (e.g., subdirectories). #>; Write-Host "^""Successfully deleted: $($path) (already deleted)."^""; $deletedCount++; continue; }; try { Remove-Item -Path $path -Force -Recurse -ErrorAction Stop; $deletedCount++; Write-Host "^""Successfully deleted: $($path)"^""; } catch { $failedCount++; Write-Warning "^""Unable to delete $($path): $_"^""; }; }; if ($skippedCount -gt 0) { Write-Host "^""Skipped $($skippedCount) items."^""; }; Write-Host "^""Successfully deleted $($deletedCount) items."^""; if ($failedCount -gt 0) { Write-Warning "^""Failed to delete $($failedCount) items."^""; }"
2451
  PowerShell -ExecutionPolicy Unrestricted -Command "$pathGlobPattern = "^""%LOCALAPPDATA%\Apple Computer\Safari\Cache.db"^""; $expandedPath = [System.Environment]::ExpandEnvironmentVariables($pathGlobPattern); Write-Host "^""Searching for items matching pattern: `"^""$($expandedPath)`"^""."^""; $deletedCount = 0; $failedCount = 0; $skippedCount = 0; $foundAbsolutePaths = @(); try { $foundAbsolutePaths += @(; Get-Item -Path $expandedPath -ErrorAction Stop | Select-Object -ExpandProperty FullName; ); } catch [System.Management.Automation.ItemNotFoundException] { <# Swallow, do not run `Test-Path` before, it's unreliable for globs requiring extra permissions #>; }; $foundAbsolutePaths = $foundAbsolutePaths | Select-Object -Unique | Sort-Object -Property { $_.Length } -Descending; if (!$foundAbsolutePaths) { Write-Host 'Skipping, no items available.'; exit 0; }; Write-Host "^""Initiating processing of $($foundAbsolutePaths.Count) items from `"^""$expandedPath`"^""."^""; foreach ($path in $foundAbsolutePaths) { if (Test-Path -Path $path -PathType Container) { Write-Host "^""Skipping, the path is not a file but a folder: $($path)."^""; $skippedCount++; continue; }; if (-not (Test-Path $path)) { <# Re-check existence as prior deletions might remove subsequent items (e.g., subdirectories). #>; Write-Host "^""Successfully deleted: $($path) (already deleted)."^""; $deletedCount++; continue; }; try { Remove-Item -Path $path -Force -Recurse -ErrorAction Stop; $deletedCount++; Write-Host "^""Successfully deleted: $($path)"^""; } catch { $failedCount++; Write-Warning "^""Unable to delete $($path): $_"^""; }; }; if ($skippedCount -gt 0) { Write-Host "^""Skipped $($skippedCount) items."^""; }; Write-Host "^""Successfully deleted $($deletedCount) items."^""; if ($failedCount -gt 0) { Write-Warning "^""Failed to delete $($failedCount) items."^""; }"
2452
 
 
 
 
2453
  echo ATK Enabling Show File Extensions.
2454
  reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f >nul 2>&1
2455
 
 
3708
  taskkill /f /im explorer.exe >nul 2>&1
3709
 
3710
  cls
3711
+ echo ATK %TEMP%
3712
  if exist "%TEMP%\*" (
3713
  del /f /s /q "%TEMP%\*" >nul 2>&1
3714
  for /d %%i in ("%TEMP%\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3717
 
3718
 
3719
  cls
3720
+ echo ATK C:\Windows\Temp
3721
  if exist "C:\Windows\Temp\*" (
3722
  del /f /s /q "C:\Windows\Temp\*" >nul 2>&1
3723
  for /d %%i in ("C:\Windows\Temp\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3726
 
3727
 
3728
  cls
3729
+ echo ATK AppData\Local\Temp
3730
  if exist "%USERPROFILE%\AppData\Local\Temp\*" (
3731
  del /f /s /q "%USERPROFILE%\AppData\Local\Temp\*" >nul 2>&1
3732
  for /d %%i in ("%USERPROFILE%\AppData\Local\Temp\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3735
 
3736
 
3737
  cls
3738
+ echo ATK C:\Windows\Prefetch
3739
  if exist "C:\Windows\Prefetch\*" (
3740
  del /f /s /q "C:\Windows\Prefetch\*" >nul 2>&1
3741
  )
 
3743
 
3744
 
3745
  cls
3746
+ echo ATK C:\Windows\SoftwareDistribution\Download
3747
  if exist "C:\Windows\SoftwareDistribution\Download\*" (
3748
  del /f /s /q "C:\Windows\SoftwareDistribution\Download\*" >nul 2>&1
3749
  for /d %%i in ("C:\Windows\SoftwareDistribution\Download\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3752
 
3753
 
3754
  cls
3755
+ echo ATK INetCache
3756
  if exist "%LOCALAPPDATA%\Microsoft\Windows\INetCache\*" (
3757
  del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\INetCache\*" >nul 2>&1
3758
  for /d %%i in ("%LOCALAPPDATA%\Microsoft\Windows\INetCache\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3761
 
3762
 
3763
  cls
3764
+ echo ATK WebCache
3765
  if exist "%LOCALAPPDATA%\Microsoft\Windows\WebCache\*" (
3766
  del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\WebCache\*" >nul 2>&1
3767
  for /d %%i in ("%LOCALAPPDATA%\Microsoft\Windows\WebCache\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3770
 
3771
 
3772
  cls
3773
+ echo ATK C:\Windows\Logs\CBS
3774
  if exist "C:\Windows\Logs\CBS\*" (
3775
  del /f /s /q "C:\Windows\Logs\CBS\*" >nul 2>&1
3776
  )
 
3778
 
3779
 
3780
  cls
3781
+ echo ATK C:\Windows\Logs\DISM
3782
  if exist "C:\Windows\Logs\DISM\*" (
3783
  del /f /s /q "C:\Windows\Logs\DISM\*" >nul 2>&1
3784
  )
 
3786
 
3787
 
3788
  cls
3789
+ echo ATK CrashDumps
3790
  if exist "%LOCALAPPDATA%\CrashDumps\*" (
3791
  del /f /s /q "%LOCALAPPDATA%\CrashDumps\*" >nul 2>&1
3792
  )
 
3794
 
3795
 
3796
  cls
3797
+ echo ATK WER
3798
  if exist "%LOCALAPPDATA%\Microsoft\Windows\WER\*" (
3799
  del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\WER\*" >nul 2>&1
3800
  for /d %%i in ("%LOCALAPPDATA%\Microsoft\Windows\WER\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3805
 
3806
 
3807
  cls
3808
+ echo ATK C:\Windows\Minidump
3809
  if exist "C:\Windows\Minidump\*" (
3810
  del /f /s /q "C:\Windows\Minidump\*" >nul 2>&1
3811
  )
 
3813
 
3814
 
3815
  cls
3816
+ echo ATK C:\Windows\Panther
3817
  if exist "C:\Windows\Panther\*" (
3818
  del /f /s /q "C:\Windows\Panther\*" >nul 2>&1
3819
  for /d %%i in ("C:\Windows\Panther\*") do if exist "%%i" rd /s /q "%%i" >nul 2>&1
 
3822
 
3823
 
3824
  cls
3825
+ echo ATK Steam Cache
3826
  taskkill /f /im steam.exe >nul 2>&1
3827
  if exist "%LOCALAPPDATA%\Steam\htmlcache" rd /s /q "%LOCALAPPDATA%\Steam\htmlcache" >nul 2>&1
3828
  if exist "%ProgramFiles(x86)%\Steam\steamapps\shadercache" rd /s /q "%ProgramFiles(x86)%\Steam\steamapps\shadercache" >nul 2>&1
 
3834
  powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c @echo off & cls & start steam://openurl/https://store.steampowered.com/' -WindowStyle Hidden" >nul 2>&1
3835
 
3836
  cls
3837
+ echo ATK Discord Cache
3838
  taskkill /f /im discord.exe >nul 2>&1
3839
  set "discord_cache=%APPDATA%\discord" >nul 2>&1
3840
  if exist "%discord_cache%\Cache" rd /s /q "%discord_cache%\Cache" >nul 2>&1
 
3844
  powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c @echo off & cls & start discord://' -WindowStyle Hidden" >nul 2>&1
3845
 
3846
  cls
3847
+ echo ATK Google Chrome Cache
3848
  taskkill /f /im chrome.exe >nul 2>&1
3849
  if exist "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache" rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache" >nul 2>&1
3850
  if exist "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Code Cache" rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Code Cache" >nul 2>&1
 
3852
 
3853
 
3854
  cls
3855
+ echo ATK Opera/Opera GX Cache
3856
  taskkill /f /im opera.exe >nul 2>&1
3857
  taskkill /f /im opera_gx.exe >nul 2>&1
3858
  if exist "%LOCALAPPDATA%\Opera Software\Opera Stable\Cache" rmdir /s /q "%LOCALAPPDATA%\Opera Software\Opera Stable\Cache" >nul 2>&1
 
3860
 
3861
 
3862
  cls
3863
+ echo ATK VS Code Cache
3864
  taskkill /f /im Code.exe >nul 2>&1
3865
  if exist "%APPDATA%\Code\Cache" rmdir /s /q "%APPDATA%\Code\Cache" >nul 2>&1
3866
  if exist "%APPDATA%\Code\CachedData" rmdir /s /q "%APPDATA%\Code\CachedData" >nul 2>&1
 
3869
 
3870
 
3871
  cls
3872
+ echo ATK Spotify Cache
3873
  taskkill /f /im spotify.exe >nul 2>&1
3874
  if exist "%LOCALAPPDATA%\Spotify\ShaderCache" rmdir /s /q "%LOCALAPPDATA%\Spotify\ShaderCache" >nul 2>&1
3875
  if exist "%LOCALAPPDATA%\Spotify\GrShaderCache" rmdir /s /q "%LOCALAPPDATA%\Spotify\GrShaderCache" >nul 2>&1
 
3880
  powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c @echo off & cls & start spotify://' -WindowStyle Hidden" >nul 2>&1
3881
 
3882
  cls
3883
+ echo ATK Brave Browser Cache
3884
  taskkill /f /im brave.exe >nul 2>&1
3885
  if exist "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Cache" rmdir /s /q "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Cache" >nul 2>&1
3886
  if exist "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Code Cache" rmdir /s /q "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Code Cache" >nul 2>&1
 
3888
 
3889
 
3890
  cls
3891
+ echo ATK Microsoft Edge Cache
3892
  taskkill /f /im msedge.exe >nul 2>&1
3893
  if exist "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Cache" rmdir /s /q "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Cache" >nul 2>&1
3894
  if exist "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Code Cache" rmdir /s /q "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\Code Cache" >nul 2>&1
 
3896
 
3897
 
3898
  cls
3899
+ echo ATK Telegram Desktop Cache
3900
  taskkill /f /im Telegram.exe >nul 2>&1
3901
  if exist "%APPDATA%\Telegram Desktop\tdata\user_data\cache" rd /s /q "%APPDATA%\Telegram Desktop\tdata\user_data\cache" >nul 2>&1
3902
  if exist "%APPDATA%\Telegram Desktop\tdata\temp" rd /s /q "%APPDATA%\Telegram Desktop\tdata\temp" >nul 2>&1
 
3904
 
3905
 
3906
  cls
3907
+ echo ATK Thumbnail Cache
3908
  if exist "%LOCALAPPDATA%\Microsoft\Windows\Explorer\thumbcache_*.db" del /f /s /q "%LOCALAPPDATA%\Microsoft\Windows\Explorer\thumbcache_*.db" >nul 2>&1
3909
 
3910
 
3911
  cls
3912
+ echo ATK Font Cache
3913
  if exist "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*.dat" del /f /q "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*.dat" >nul 2>&1
3914
  if exist "%WinDir%\System32\FNTCACHE.DAT" del /f /q "%WinDir%\System32\FNTCACHE.DAT" >nul 2>&1
3915
 
3916
 
3917
  cls
3918
+ echo ATK Recycle Bin
3919
  if exist "C:\$Recycle.Bin" rd /s /q "C:\$Recycle.Bin" >nul 2>&1
3920
 
3921
 
3922
  cls
3923
+ echo ATK Delivery Optimization Cache
3924
  if exist "C:\ProgramData\Microsoft\Windows\DeliveryOptimization\Cache" (
3925
  rd /s /q "C:\ProgramData\Microsoft\Windows\DeliveryOptimization\Cache" >nul 2>&1
3926
  )
 
3928
 
3929
 
3930
  cls
3931
+ echo ATK Windows Update Cache
3932
  net stop wuauserv >nul 2>&1
3933
  net stop bits >nul 2>&1
3934
  if exist "C:\Windows\SoftwareDistribution\Download" (
 
3943
 
3944
 
3945
  cls
3946
+ echo ATK Microsoft Store Cache
3947
  taskkill /f /im WinStore.App.exe >nul 2>&1
3948
  if exist "%LOCALAPPDATA%\Packages" (
3949
  for /d %%i in ("%LOCALAPPDATA%\Packages\Microsoft.WindowsStore_*") do (
 
3955
 
3956
 
3957
  cls
3958
+ echo ATK NVIDIA / AMD Shader Cache
3959
  if exist "%LOCALAPPDATA%\NVIDIA\DXCache" rd /s /q "%LOCALAPPDATA%\NVIDIA\DXCache" >nul 2>&1
3960
  if exist "%LOCALAPPDATA%\NVIDIA\GLCache" rd /s /q "%LOCALAPPDATA%\NVIDIA\GLCache" >nul 2>&1
3961
  if exist "%LOCALAPPDATA%\AMD\DxcCache" rd /s /q "%LOCALAPPDATA%\AMD\DxcCache" >nul 2>&1
 
3963
 
3964
 
3965
  cls
3966
+ echo ATK Windows Error Reporting
3967
  if exist "%ProgramData%\Microsoft\Windows\WER\ReportQueue" rd /s /q "%ProgramData%\Microsoft\Windows\WER\ReportQueue" >nul 2>&1
3968
  if exist "%ProgramData%\Microsoft\Windows\WER\ReportArchive" rd /s /q "%ProgramData%\Microsoft\Windows\WER\ReportArchive" >nul 2>&1
3969
 
3970
 
3971
 
3972
  cls
3973
+ echo ATK LiveKernelReports
3974
  if exist "C:\Windows\LiveKernelReports" rd /s /q "C:\Windows\LiveKernelReports" >nul 2>&1
3975
 
3976
 
3977
 
3978
  cls
3979
+ echo ATK Windows.old
3980
  if exist "C:\Windows.old" rd /s /q "C:\Windows.old" >nul 2>&1
3981
  timeout /t 2 >nul
3982
 
3983
 
3984
  cls
3985
+ echo ATK $GetCurrent
3986
  if exist "C:\$GetCurrent" rd /s /q "C:\$GetCurrent" >nul 2>&1
3987
 
3988
 
3989
 
3990
  cls
3991
+ echo ATK Previous Windows installations leftovers
3992
  if exist "C:\Windows10Upgrade" rd /s /q "C:\Windows10Upgrade" >nul 2>&1
3993
  if exist "C:\$WINDOWS.~BT" rd /s /q "C:\$WINDOWS.~BT" >nul 2>&1
3994
  if exist "C:\$WINDOWS.~WS" rd /s /q "C:\$WINDOWS.~WS" >nul 2>&1
 
3996
 
3997
 
3998
  cls
3999
+ echo ATK Epic Games Cache
4000
  taskkill /f /im EpicGamesLauncher.exe >nul 2>&1
4001
  if exist "%LOCALAPPDATA%\EpicGamesLauncher\Saved\webcache" rd /s /q "%LOCALAPPDATA%\EpicGamesLauncher\Saved\webcache" >nul 2>&1
4002
  if exist "%LOCALAPPDATA%\EpicGamesLauncher\Saved\Logs" del /f /s /q "%LOCALAPPDATA%\EpicGamesLauncher\Saved\Logs\*" >nul 2>&1
 
4004
 
4005
 
4006
  cls
4007
+ echo ATK Battle.net Cache
4008
  taskkill /f /im Battle.net.exe >nul 2>&1
4009
  taskkill /f /im Agent.exe >nul 2>&1
4010
  if exist "%ProgramData%\Battle.net\Cache" rd /s /q "%ProgramData%\Battle.net\Cache" >nul 2>&1
 
4013
 
4014
 
4015
  cls
4016
+ echo ATK Windows Defender Logs
4017
  if exist "%ProgramData%\Microsoft\Windows Defender\Scans\History" rd /s /q "%ProgramData%\Microsoft\Windows Defender\Scans\History" >nul 2>&1
4018
  if exist "%ProgramData%\Microsoft\Windows Defender\Support" del /f /s /q "%ProgramData%\Microsoft\Windows Defender\Support\*" >nul 2>&1
4019
 
4020
 
4021
 
4022
  cls
4023
+ echo ATK Edge WebView2 Cache
4024
  if exist "%LOCALAPPDATA%\Microsoft\EdgeWebView" rd /s /q "%LOCALAPPDATA%\Microsoft\EdgeWebView" >nul 2>&1
4025
 
4026
 
4027
 
4028
  cls
4029
+ echo ATK Unity Cache
4030
  if exist "%APPDATA%\Unity\Cache" rd /s /q "%APPDATA%\Unity\Cache" >nul 2>&1
4031
  if exist "%LOCALAPPDATA%\Unity\cache" rd /s /q "%LOCALAPPDATA%\Unity\cache" >nul 2>&1
4032
 
4033
 
4034
 
4035
  cls
4036
+ echo ATK Unreal Engine Cache
4037
  if exist "%LOCALAPPDATA%\UnrealEngine\Common\DerivedDataCache" rd /s /q "%LOCALAPPDATA%\UnrealEngine\Common\DerivedDataCache" >nul 2>&1
4038
 
4039
 
4040
 
4041
  cls
4042
+ echo ATK NVIDIA Driver Installer Cache
4043
  if exist "C:\ProgramData\NVIDIA Corporation\Downloader" rd /s /q "C:\ProgramData\NVIDIA Corporation\Downloader" >nul 2>&1
4044
 
4045
  start explorer.exe >nul 2>&1
 
4124
  )
4125
  )
4126
 
4127
+ echo ATK Adding God Mode Folder to Desktop
4128
  set "folder1Name=God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}"
4129
  set "desktop1Path=%USERPROFILE%\Desktop"
4130
  mkdir "%desktop1Path%\%folder1Name%" >nul