When we install some software on a win10 computer, some rogue software is often automatically installed inexplicably. After uninstalling it, restart the computer and install it again. How should we clean up such rogue software? Woolen cloth? The editor below will share with you a method to clean up junk in Windows 10 system.
1. Make a [Clear System Junk.bat] file to clear system junk and copy the following content into Notepad:
@echo off
pause
echo Cleaning up system junk files, please wait...
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*. gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\ prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
##del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\recent\*.*" echo Cleaning up system junk is complete! echo. & pauseThe above is the detailed content of How to clean software junk files in win10. For more information, please follow other related articles on the PHP Chinese website!