Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off >Nul
- rem ---------------------------------RUN-AS-ADMIN--------------------------------
- cls
- Title Request Privilages ^| Administrator
- Setlocal enableextensions enabledelayedexpansion
- GOTO make_admin
- :found_admin
- If exist "%TEMP%\GETADMIN.VBS" (
- Del /F /Q "%TEMP%\GETADMIN.VBS"
- )
- If exist "%TEMP%\AdminTest" (
- Rmdir /S /Q "%TEMP%\AdminTest" >NUL
- )
- goto loop
- :loop
- rem -------------------------------TASKBAR-BUBBLER-------------------------------
- setlocal ENABLEDELAYEDEXPANSION
- if exist temp.ps1 del /f /q temp.ps1
- for /f "delims=" %%A in ('powershell -command get-executionpolicy') do (
- set "GECP=%%A"
- )
- echo Your current execution policy is: !GECP!
- if not "!GECP!"=="Bypass" (
- pause >nul
- powershell -command set-executionpolicy bypass
- )
- cls
- echo [reflection.assembly]::loadwithpartialname^("System.Windows.Forms"^) >"%temp%\temp.ps1"
- echo [reflection.assembly]::loadwithpartialname^("System.Drawing"^) >>"%temp%\temp.ps1"
- echo $notify = new-object system.windows.forms.notifyicon >>"%temp%\temp.ps1"
- echo $notify.icon = [System.Drawing.SystemIcons]::Warning >>"%temp%\temp.ps1"
- echo $notify.visible = $true >>"%temp%\temp.ps1"
- echo $notify.showballoontip^(10,"WhoHacksAnymore?","Windows Batch Optimizer Tool Activated",[system.windows.forms.tooltipicon]::Warning^) >>"%temp%\temp.ps1"
- powershell -file %temp%\temp.ps1 >nul
- rem ---------------------------------VOICE-CODE----------------------------------
- set "text=Hello, Welcome to the windows batch optimizer tool version 6 point 1."
- echo set speech = Wscript.CreateObject("SAPI.spVoice") >"%temp%/Speech.vbs"
- echo speech.speak "%text%" >>"%temp%/Speech.vbs"
- start %temp%/Speech.vbs
- rem ----------------------------------MAIN-CODE----------------------------------
- cls
- Del /F /Q "%temp%\temp.ps1"
- Del /F /Q "%temp%/Speech.vbs"
- Del /F /Q "%TEMP%\AdminTest\*.*"
- Del /F /Q "%TEMP%\AdminTest"
- @echo off >Nul
- :menu
- color 07
- Title WhoHacksAnymore's Batch Optimizer ^| Clean-up ^& Repair ^| Public
- cls
- echo =---+*+---+*+---+*+---+*+---+*+---+*+---=
- echo ^| WhoHacksAnymores Official Windows ^|
- echo ^| Batch Optimizer Tool^^! ^|
- echo ^| ^|
- echo ^| [Version: 6.1.7601] ^|
- echo =---+*+---+*+---+*+---+*+---+*+---+*+---=
- echo.
- echo Choices
- echo =========
- echo.
- echo 0) Tool Information 13) Reset Internet Explorer
- echo 1) Clear Temp Foler 14) Reset Mozilla Firefox
- echo 2) Flush local DNS 15) Reset Google Chrome
- echo 3) Clear skype downloads 16) Reset Opera Stable
- echo 4) Empty recycle-bin 17) Reset registry values of WinDefender
- echo 5) CheckDisk Utility 18) Launch Disk Cleanup (Cleanmgr.exe)
- echo 6) Repair broken files 19) Recover files from a defective disk
- echo 7) Defragment a disk 20) Clear %username%'s Downloads Folder
- echo 8) Re-register Dns names 21) Bypass Win. activation key for 30 days
- echo 9) Uninstall Win. Product Key 22) Find how many key bypass(s) you have
- echo 10) Delete Internet Cookies 23) Execute System Restore
- echo 11) Delete Temporary Internet Files 24) Wipe User Contacts
- echo 12) Wipe Prefetch Folder 25) Exit Terminal
- echo.
- set /p number=^>
- If not defined number (
- cls
- goto menu
- )
- if %number% == 0 goto tool0
- if %number% == 1 goto tool1
- if %number% == 2 goto tool2
- if %number% == 3 goto tool3
- if %number% == 4 goto tool4
- if %number% == 5 goto tool5
- if %number% == 6 goto tool6
- if %number% == 7 goto tool7
- if %number% == 8 goto tool8
- if %number% == 9 goto tool9
- if %number% == 10 goto tool10
- if %number% == 11 goto tool11
- if %number% == 12 goto tool12
- if %number% == 13 goto tool13
- if %number% == 14 goto tool14
- if %number% == 15 goto tool15
- if %number% == 16 goto tool16
- if %number% == 17 goto tool17
- if %number% == 18 start cleanmgr.exe & goto menu
- if %number% == 19 goto tool19
- if %number% == 20 goto tool20
- if %number% == 21 goto tool21
- if %number% == 22 goto tool22
- if %number% == 23 start rstrui.exe & goto menu
- if %number% == 24 goto tool24
- if %number% == 25 goto :eof
- :tool0
- cls
- echo ___________
- echo _/ \____\__ Coding Credits ^| S/o
- echo ^| ^| ========================
- echo ^| FOLDER OF ^| Shout out to...
- echo ^| PROGRAM INFO ^| JohnnyCash: Taskbar bubbler code
- echo ^| AND CODING ^| AMDJack: Invok admin privilages script
- echo ^| CREDITS ^| OneVirus: Browser reset codes (Besided Opera Stable)
- echo ^|______________^|
- echo.
- echo This is a WhoHacksAnymore.inc production.
- echo Official Windows Batch Optimizer
- echo [Cleanup ^& Repair Tool] ~2015
- echo Current Build Version: 6.1.7601
- echo.
- echo Strike a key when ready. . .
- pause >nul
- goto menu
- :tool1
- color 0a
- cls
- echo +-----------------------------------+
- echo ^| C L E A R T E M P F O L D E R ^|
- echo +-----------------------------------+
- :: "C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Recent Items"
- echo processing. . . & ping localhost -n 3 >nul
- For %%q In (%temp%) Do (
- Del /F /Q %temp%\*.*
- )
- goto menu
- :tool2
- color 0a
- cls
- echo +-------------------------------+
- echo ^| F L U S H L O C A L D N S ^|
- echo +-------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Ipconfig /flushdns
- goto menu
- :tool3
- color 0a
- cls
- echo +-----------------------------------------------------+
- echo ^| C L E A R S K Y P E D O W N L O A D C A C H E ^|
- echo +-----------------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- If exist "%homedrive%\Program Files\Skype" goto csdc
- If not exist "%homedrive%\Program Files\Skype" goto confirm_skype
- :confirm_skype
- cls
- color 0c
- echo +-----------------------------------------------------+
- echo ^| C L E A R S K Y P E D O W N L O A D C A C H E ^|
- echo +-----------------------------------------------------+
- echo Skype appears to not be installed on this current machine.
- echo This may result in an error due to the path of skype's
- echo download cache not existing. Do you want to continue? (Y/N)
- echo.
- set /p number2=^>
- If not defined number2 (
- cls
- goto confirm_skype
- )
- if /i %number2% == y goto csdc
- if /i %number2% == n goto menu
- :csdc
- Attrib "%userprofile%\AppData\Roaming\Skype\My Skype Received Files\*.*" -r -s -h
- Del "%userprofile%\AppData\Roaming\Skype\My Skype Received Files\*.*"
- goto menu
- :tool4
- color 0a
- cls
- echo +-----------------------------------+
- echo ^| E M P T Y R E C Y C L E B I N ^|
- echo +-----------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- if exist %homedrive%\$Recycle.Bin goto del_bin1
- if exist %homedrive%\recycler goto del_bin2
- :del_bin1
- rd /q /s %homedrive%\$Recycle.Bin
- goto menu
- :del_bin2
- rd /q /s %homedrive%\recycler
- goto menu
- :tool5
- color 0a
- cls
- echo +-------------------------------------+
- echo ^| C H E C K D I S K U T I L I T Y ^|
- echo +-------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- chkdsk
- pause
- goto menu
- :tool6
- color 0a
- cls
- echo +----------------------------------------+
- echo ^| R E P A I R B R O K E N F I L E S ^|
- echo +----------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- sfc /scannow
- pause
- goto menu
- :tool7
- color 0a
- cls
- echo +-----------------------------------+
- echo ^| D E F R A G M E N T A D I S K ^|
- echo +-----------------------------------+
- Set/p dskdefrg=Enter disk you want to be defragmented:
- echo processing. . . & ping localhost -n 3 >nul
- defrag %dskdefrg% -v
- pause & goto menu
- :tool8
- color 0a
- cls
- echo +-----------------------------------------+
- echo ^| R E R E G I S T E R D N S N A M E S ^|
- echo +-----------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Ipconfig /registerdns
- goto menu
- :tool9
- color 0a
- cls
- echo +---------------------------------------+
- echo ^| U N I N S T A L L W I N D O W S ^|
- echo ^| P R O D U C T / L I C E N S E K E Y ^|
- echo +---------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Ipconfig /registerdns
- goto menu
- :tool10
- color 0a
- cls
- echo +-----------------------------------------------+
- echo ^| D E L E T E I N T E R N E T C O O K I E S ^|
- echo +-----------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Attrib "%userprofile%\Cookies\*.*" -r -s -h
- Del /f /q "%userprofile%\Cookies\*.*"
- goto menu
- :tool11
- color 0a
- cls
- echo +----------------------------------+
- echo ^| D E L E T E T E M P O R A R Y ^|
- echo ^| I N T E R N E T F I L E S ^|
- echo +----------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Attrib "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" -r -s -h
- del /f /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
- goto menu
- :tool12
- color 0a
- cls
- echo +---------------------------------------+
- echo ^| W I P E P R E F E T C H C A C H E ^|
- echo +---------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Attrib %windir%\Prefetch -r -s -h
- Attrib %windir%\Prefetch\*.* -r -s -h
- Rmdir %windir%\Prefetch\*.* /S /Q
- goto menu
- :tool13
- color 0a
- cls
- echo +-----------------------------------------------+
- echo ^| R E S E T I N T E R N E T E X P L O R E R ^|
- echo +-----------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
- goto menu
- :tool14
- color 0a
- cls
- echo +-------------------------------------------+
- echo ^| R E S E T M O Z I L L A F I R E F O X ^|
- echo +-------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- If exist "%homedrive%\Program Files\Mozilla Firefox" goto reset_firefox
- If not exist "%homedrive%\Program Files\Mozilla Firefox" goto check4firefox
- :check4firefox
- cls
- color 0c
- cls
- echo +---------------------------------------+
- echo ^| R E S E T G O O G L E C H R O M E ^|
- echo +---------------------------------------+
- echo Firefox appears to not be installed on this current machine.
- echo This may result in an error if you proceed. Do you want
- echo to continue? (Y/N)
- echo.
- set /p number5=^>
- If not defined number5 (
- cls
- goto check4firefox
- )
- if /i %number5% == y goto reset_firefox
- if /i %number5% == n goto menu
- :reset_firefox
- set "firefox_path=%userprofile%\AppData\Local\Mozilla\Firefox\Profiles"
- Del /q /s /f "%firefox_path%" & Rd /s /q "%firefox_path%"
- For /d %%x in (%appdata%\Mozilla\Firefox\Profiles\*) do (
- Del /q /s /f %%x\*sqlite
- )
- goto menu
- :tool15
- color 0a
- cls
- echo +---------------------------------------+
- echo ^| R E S E T G O O G L E C H R O M E ^|
- echo +---------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- If exist "%homedrive%\Program Files\Google\Chrome" goto reset_chrome
- If not exist "%homedrive%\Program Files\Google\Chrome" goto check4chrome
- :check4chrome
- cls
- color 0c
- cls
- echo +---------------------------------------+
- echo ^| R E S E T G O O G L E C H R O M E ^|
- echo +---------------------------------------+
- echo Chrome appears to not be installed on this current machine.
- echo This may result in an error if you proceed. Do you want
- echo to continue? (Y/N)
- echo.
- set /p number4=^>
- If not defined number4 (
- cls
- goto check4chrome
- )
- if /i %number4% == y goto reset_chrome
- if /i %number4% == n goto menu
- :reset_chrome
- set "chrome_path=%userprofile%\AppData\Local\Google\Chrome\User Data"
- Del /q /s /f "%chrome_path%"
- Rd /s /q "%chrome_path%"
- goto menu
- :tool16
- color 0a
- cls
- echo +-------------------------------------+
- echo ^| R E S E T O P E R A S T A B L E ^|
- echo +-------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- If exist "%homedrive%\Program Files\Opera" goto reset_opera
- If not exist "%homedrive%\Program Files\Opera" goto check4opera
- :check4opera
- cls
- color 0c
- echo +-------------------------------------+
- echo ^| R E S E T O P E R A S T A B L E ^|
- echo +-------------------------------------+
- echo Opera appears to not be installed on this current machine.
- echo This may result in an error if you proceed. Do you want
- echo to continue? (Y/N)
- echo.
- set /p number3=^>
- If not defined number3 (
- cls
- goto check4opera
- )
- if /i %number3% == y goto reset_opera
- if /i %number3% == n goto menu
- :reset_opera
- Set "opera_path=%userprofile%\AppData\Roaming\Opera Software\Opera Stable"
- Del /f /q /s %opera_path%\Local Storage & Del /f /q /s %opera_path%\Extension State
- Del /f /q /s %opera_path%\Cookies.file & Del /f /q /s %opera_path%\History.file
- Del /f /q /s %opera_path%\Login Data.file & Del /f /q /s %opera_path%\Web Data.file
- goto menu
- :tool17
- cls
- color 0a
- echo +-------------------------------------------+
- echo ^| R E S E T R E G I S T R Y V A L U E S ^|
- echo ^| O F W I N D O W S D E F E N D E R ^|
- echo +-------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- "%homedrive%\Program Files\Windows Defender\MpCmdRun.exe" -RestoreDefaults
- goto menu
- :tool19
- cls
- color 0a
- echo +--------------------------------------+
- echo ^| R E C O V E R A F I L E F R O M ^|
- echo ^| A D E F E C T I V E D I S K ^|
- echo +--------------------------------------+
- echo.
- echo SYNTAX:
- echo ==========
- echo [drive:][path]filename
- echo.
- echo Enter a full file path in a defective disk to recover:
- Set/p "defdsk=^> "
- echo processing. . . & ping localhost -n 3 >nul & cls
- Recover %defdsk%
- echo. & pause
- goto menu
- :tool20
- cls
- color 0a
- echo +---------------------------------------------+
- echo ^| C L E A R D O W N L O A D S F O L D E R ^|
- echo +---------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Attrib "%homedrive%\Users\%username%\Downloads\*.*" -r -s -h
- Del /f /s /q "%homedrive%\Users\%username%\Downloads\*.*"
- goto menu
- :tool21
- cls
- color 0a
- echo +---------------------------------------------+
- echo ^| B Y P A S S W I N . A C T I V A T I O N ^|
- echo +---------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Slmgr -rearm
- goto menu
- :tool22
- cls
- color 0a
- echo +-------------------------------------------+
- echo ^| N U M B E R O F A C T I V A T I O N S ^|
- echo +-------------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- slmgr /dlv
- goto menu
- :tool24
- cls
- color 0a
- echo +-----------------------------------------+
- echo ^| W I P E C O N T A C T S F O L D E R ^|
- echo +-----------------------------------------+
- echo processing. . . & ping localhost -n 3 >nul
- Attrib %homedrive%\Users\%username%\Contacts\*.* -r -s -h
- Del /F /Q /S %homedrive%\Users\%username%\Contacts\*.*
- goto menu
- rem -----------------------------RUN-AS-ADMIN-CONTINUED--------------------------
- :make_admin
- cls
- Mkdir "%TEMP%\AdminTest" >NUL
- If ERRORLEVEL 1 goto found_admin
- :CREATE_ADMIN
- Echo SET UAC = CreateObject^("Shell.Application"^) >"%TEMP%\GETADMIN.VBS"
- Echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >>"%TEMP%\GETADMIN.VBS"
- "%TEMP%\GETADMIN.VBS"
- Exit /B
- goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement