Advertisement
Guest User

Untitled

a guest
May 9th, 2020
12,843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo off
  2. SETLOCAL DISABLEDELAYEDEXPANSION
  3. color 9 & mode 50, 15
  4. TITLE Steam Clear
  5. :: Original Code by matt1.tk : https://pastebin.com/KBCAf2Xt
  6. :: This version is improved by Factor
  7. goto :permcheck
  8.  
  9. :main
  10. cls
  11. echo.
  12. echo.
  13. echo.
  14. echo         \=============================/
  15. echo                   Steam Clear
  16. echo          by matt1.tk (Improved by Factor)
  17. echo              \===================/
  18. echo.
  19. echo.
  20. echo.
  21. timeout /t 1 /NOBREAK >NUL
  22. echo           ^<press any key to continue^>
  23. pause >NUL 2>NUL
  24.  
  25. taskkill /f /im hl1.exe >NUL 2>NUL
  26. taskkill /f /im hl2.exe >NUL 2>NUL
  27. taskkill /f /im Steam.exe >NUL 2>NUL
  28. REG DELETE HKEY_CURRENT_USER\Software\Valve\Steam\Users /f >NUL 2>NUL
  29. REG DELETE HKEY_CURRENT_USER\Software\Valve\Steam\Users /f >NUL 2>NUL
  30. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Valve\User s /f >NUL 2>NUL
  31. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Users /f >NUL 2>NUL
  32. REG DELETE HKEY_CURRENT_USER\Software\Valve\Steam /f >NUL 2>NUL
  33. REG DELETE HKEY_CURRENT_USER\Software\Valve /f >NUL 2>NUL
  34. REG DELETE HKEY_CURRENT_USER\Software\Wow6432Node\Valve\Steam /f >NUL 2>NUL
  35. REG DELETE HKEY_CURRENT_USER\Software\Wow6432Node\Valve /f >NUL 2>NUL
  36. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Valve\User s /f >NUL 2>NUL
  37. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Valve /f >NUL 2>NUL
  38. REG DELETE HKEY_LOCAL_MACHINE\Software\Valve\Steam\Users /f >NUL 2>NUL
  39. REG DELETE HKEY_LOCAL_MACHINE\Software\Valve /f >NUL 2>NUL
  40. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Classes\steam /f >NUL 2>NUL
  41. REG DELETE HKEY_CURRENT_USER\Software\Classes\steam /f >NUL 2>NUL
  42. REG DELETE HKEY_CLASSES_ROOT\steam /f >NUL 2>NUL
  43. cd\ >NUL 2>NUL
  44. C: >NUL 2>NUL
  45. cd C:\Program Files (x86)\Steam >NUL 2>NUL
  46. del /s /q "C:\Steam\appcache\Steam.log >NUL 2>NUL
  47. del /S /Q "C:\Program Files (x86)\Steam\config" >NUL 2>NUL
  48. del /S /q "C:\Steam\appcache\AppUpdateStats.blob" >NUL 2>NUL
  49. del /S /q "C:\Steam\appcache\GameOverlayRenderer.log" >NUL 2>NUL
  50. del /S /q "C:\Steam\appcache\GameOverlayUI.exe.log" >NUL 2>NUL
  51. del /S /q "C:\Steam\appcache\crashhandler.dll" >NUL 2>NUL
  52. del /S /q "C:\Steam\appcache\crashhandler64.dll" >NUL 2>NUL
  53. del /S /q "C:\Steam\appcache\CSERHelper.dll" >NUL 2>NUL
  54. del /S /q "C:\Steam\appcache\Steam.dll" >NUL 2>NUL
  55. del /S /q "C:\Steam\appcache\steamclient.dll" >NUL 2>NUL
  56. del /S /q "C:\Steam\appcache\steamclient64.dll" >NUL 2>NUL
  57. del /S /q "C:\Steam\appcache\SteamUI.dll" >NUL 2>NUL
  58. del /S /q "C:\Steam\appcache\streaming_client.exe" >NUL 2>NUL
  59. del /S /q "C:\Steam\appcache\WriteMiniDump.exe" >NUL 2>NUL
  60. del /S /q "C:\Steam\appcache\debug.log" >NUL 2>NUL
  61. del /Q F logs >NUL 2>NUL
  62. del /Q F *.mdmp >NUL 2>NUL
  63. del ClientRegistry.blob >NUL 2>NUL
  64. rmdir /S /Q "C:\Program Files (x86)\Steam\appcache" >NUL 2>NUL
  65. rmdir /S /Q "C:\Program Files (x86)\Steam\config" >NUL 2>NUL
  66. rmdir /S /Q "C:\Program Files (x86)\Steam\userdata" >NUL 2>NUL
  67. rmdir /S /Q "C:\Program Files (x86)\Steam\dumps" >NUL 2>NUL
  68. rmdir /S /Q "C:\Program Files (x86)\Steam\logs" >NUL 2>NUL
  69. rmdir /S /Q "C:\Program Files (x86)\Steam\appcache" >NUL 2>NUL
  70. call :errorcheck
  71.  
  72. cls
  73. echo.
  74. echo.
  75. echo.
  76. echo               ---------------------
  77. echo                  Steam Cleared !
  78. echo               ---------------------
  79. echo.
  80. echo.
  81. echo.
  82. timeout /t 1 /NOBREAK >NUL
  83. echo             ^<press any key to close^>
  84. pause >NUL 2>NUL
  85. exit /b
  86.  
  87. :errorcheck
  88. if %errorlevel% EQU 1 (
  89.     cls
  90.     color c
  91.     echo                 Something went wrong...
  92.     echo     If you already ran this before, this may be why.
  93.     echo   Make sure you are running this script as administrator.
  94.     timeout /t 3
  95.     exit /b
  96. ) else (
  97.     goto :eof
  98. )
  99.  
  100. :permcheck
  101. net file 1>NUL 2>NUL
  102. if "%errorlevel%" EQU "0" (
  103.     goto :main
  104. ) else (
  105.     goto :insuffperms
  106.     exit /b
  107. )
  108.  
  109. :insuffperms
  110. cls
  111. color c
  112. echo.
  113. echo  You must be running as admin to use this Utility!
  114. echo      Please Run this script as administrator.
  115. echo.
  116. echo             Press Any Key to exit...
  117. pause >NUL
  118. exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement