In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to use bat to clean up startup items. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The code is as follows:
@ echo off&setlocal enabledelayedexpansionmode con cols=61 lines=25&color f5mshta _ vbscript:msgbox ("make sure all editing materials have been saved before running the program", "homemade optimization system") (window.close) if exist tem.txt del / f / Q tem.txtecho. Brushing process .echo > > tem.txt explorer.exeecho > > tem.txt System Idle Processecho > > tem.txt Systemecho > > tem.txt smss.exeecho > > tem.txt csrss.exeecho > > tem.txt winlogon.exeecho > > tem.txt services.exeecho > > tem.txt TheWorld.exeecho > > tem.txt lsass.exeecho > > tem.txt svchost.exeecho > > tem.txt spoolsv.exeecho > > tem.txt alg.exeecho > > tem.txt ctfmon.exeecho > > tem.txt ekrn.exeecho > > tem.txt wdfmgr.exeecho > > tem.txt 360tray.exeecho > > tem.txt egui.exeecho > tem.txt wmiprvse.exeecho > tem.txt QQ.exeecho > tem.txt cmd.exeecho > > tem.txt IEXPLORE.EXEecho > tem.txt TXPlatform.exeecho > > tem.txt tasklist.exeecho > > tem.txt conime.exeecho > > tem.txt safeboxTray.exeecho > > tem.txt Thunder5.exeecho > > tem.txt tudouva.exefor / f "eol= tokens=1,2 delims= "% I in ('tasklist / nh / fo csv') do (findstr / I / x% I tem.txt > nulif errorlevel 1 (taskkill / f / pid% j 1 > nul 2 > nul)) del tem.txt & echo end process task basically completed echo = = echo = echo = = echo optimized boot startup item del / f / s / Q"% systemdrive%\ Docume~1\ All Users\ start menu\ Program\ launch\ * . * "del / f / s / Q"% userprofile%\ "start" menu\ program\ launch\ *. * "for / f" delims=\ "% j in ('fsutil fsinfo drives ^ | find / v"') do (del / f / Q"% j\ * .inf "> nul 2 > nul & del / f / Q / ah"% j\ * .exe "2 > nul) echo > > tem.txt" egui "echo > > tem.txt" essact "echo > > tem.txt" CTFMON.EXE "set key=Software\ Microsoft\ Windows\ CurrentVersion \ runREG EXPORT "HKCU\% key%" a.reg / nt4 > nulecho REGEDIT4 > b.regecho [HKEY_CURRENT_USER\% key%] > > b.regfor / f "skip=2 eol= [tokens=1,2 delims=="% an in (a.reg) do (findstr / I% a tem.txt > nul | | echo% asides-> b.reg) for / f "skip=2 delims= ["% m in ('find / I "\ run\" a.reg') do (echo ^ [^ -% m > b.reg) regedit / s b.regREG EXPORT "HKLM\% key%" a.reg / nt4 > nulecho REGEDIT4 > b.regecho [HKEY_LOCAL_MACHINE\% key%] > > b.regfor / f "skip=2 eol= [tokens=1,2 delims=="% an in (a.reg) do (findstr / I% a tem.txt > nul | | echo% asides-> > b.reg) for / f "skip=2 delims= ["% m in ('find / I "\ run\" a.reg') do (echo ^ [^ -% m > > b.reg) regedit / s b.regdel / Q a. Regdel / Q b.regdel tem.txtecho has been optimized echo = = echo = echo = = echo to clean up some system garbage del / f / Q% systemdrive%\ * .tmp > nul 2 > nuldel / f / Q% systemdrive%\ *. _ mp > nul 2 > nuldel / f / Q% systemdrive%\ * .log > nul 2 > nuldel / f / Q% systemdrive%\ * .gid > nul 2 > nuldel / f / Q% systemdrive%\ * .chk > nul 2 > nuldel / f / Q% systemdrive%\ * .old > nul 2 > nuldel / f / Q% windir%\ * .bak > nul 2 > nuldel / f / Q% windir%\ * .tmp > nul 2 > nuldel / f / Q% windir%\ prefetch\ *. * > nul 2 > nuldel / f / s / Q% systemdrive%\ recycled\ *. * > nul 2 > nuldel / f / Q "% ALLUSERSPROFILE%\ Documents\ DrWatson\ *." > nul 2 > nuldel / f / Q "% USERPROFILE%\ Cookies\ * .txt" > nul 2 > nuldel / f / Q / s "% TEMP%\ *." > nul 2 > nuldel / f / Q / s "% Systemroot%\ Prefetch\. *. * "> nul 2 > nuldel / f / Q"% USERPROFILE%\ Recent\ *. * "> nul 2 > nuldel / f / Q"% USERPROFILE%\ Application Data\ Microsoft\ Office\ Recent\ * .lnk "> nul 2 > nuldel / f / Q / s"% USERPROFILE%\ Local Settings\ Temp\ *. "> nul 2 > nulrd / s / Q% windir%\ temp & md% windir%\ temp > nul 2 > nulif not exist% SystemRoot%\ Minidump\ NUL del / f / Q / s% SystemRoot%\ Minidump\ *. * > nul 2 > nuldel / f / s / Q" % userprofile%\ Local Settings\ Temporary Internet Files\ *. "> nul 2 > nulecho has cleaned up mshta _ vbscript:msgbox (" everything cleaning! " , "completion information") (window.close) taskkill / f / im cmd.exe on "how to use bat to clean up startup items" is here. Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.