一键自动清理系统垃圾与上网痕迹代码bat

合集下载

清理系统垃圾及优化网络 批处理命令代码

清理系统垃圾及优化网络 批处理命令代码

把下面代码复制到记事本中,然后改后缀为…….dat 如然后打开点能运行运行效果如图下面代码一直到最后@echo offclsremrem Contact: [url=] [/url]remrem This program is free software; you can redistribute it and/or modify it underrem the terms of the GNU General Public License as published by the Free Software Foundation; rem either version 2 of the License, or (at your option) any later version.rem This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;rem without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.rem See the GNU General Public License for more details.remrem Y ou should have received a copy of the GNU General Public License along with thisprogram;rem if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, rem MA 02111-1307, USA.echo.REM Tested on ... WinXP_SP2REM Always basic XP64 SupportREM Modifications to BITS service (cause of v5 WindowsUpdate) - #discharged#REM Additional notices corresponding to DHCP issueREM V ariables problems during RESTORE_DEFAULT usage fixedREM SMBDEVICEENABLED Restore Bug fixedREM Mod_history-09-27-2005**11-08-2005**11-29-2005**12-07-2005**12-18-2005 setlocalREM *** INIT_V ARS ***set CHK_SVC=YESset XPSP2=FALSEset SERVER=FALSEset NT_SERVER_CHK=TRUE:STARTecho "svc2kXp.cmd" 正在检测您的电脑,稍后进行优化!echo ================================================================ set find=%SystemRoot%\System32\find.exeset regedit=%SystemRoot%\regedit.exeif not exist "%find%" goto :NOFINDif not exist "%regedit%" goto :NOREGEDITif not "%1" == "%*" goto :SYNTAXif /I "%1"=="/?" goto :HELPif /I "%1"=="/help" goto :HELPif /I "%1"=="-h" goto :HELPif /I "%1"=="--help" goto :HELPif /I "%1"=="-?" goto :HELPif /I "%1"=="--?" goto :HELPif /I "%1"=="/fix" goto :FIXgoto :VERSION:SYNTAXecho.echo.echo !!Syntax error!!echo ________________echo Es kann nur ein oder kein Parameter angegeben werden.echo.echo Only one or no parameter allowed.goto :QUIT:HELPecho.echo -= Hilfe =-echo Parameter:echo /lan.......Einige Dienste fuer LAN-Betrieb werden nicht veraendert.echo /std.......Schliesst alle Ports, einige Dienste bleiben unveraendert.echo /all.......Setzt alle V orschlaege nach www.ntsvcfg.de um (hardening).echo /restore...Nimmt die zuletzt vorgenommenen Aenderungen zurueck.echo /reLAN.....Reaktiviert Dienste, die fuer LAN-Betrieb benoetigt werden.echo /default...Setzt alle Diensteinstellungen auf urspr黱gliche Werte zur點k.echo.echo Parameters:echo /lan.......Some services needed for LAN-usage stay unchanged!echo /std.......Closes all Ports, but some services stay unchangedecho /all.......Changes all issues recommended by www.ntsvcfg.de ("hardening")echo /restore...Undo last changes.echo /reLAN.....Reactivates services required for LAN.echo /default...Restoring factory service settings (before first time usage)echo.echo example: svc2kxp.cmd /allecho.set /P CHS= [Press "G" for GNU GPL informations or "Q" for quit]?if /I "%CHS%"=="G" goto :GNU_GPLif /I "%CHS%"=="Q" goto :QUIT_EXTCLSgoto :HELP:GNU_GPLCLSecho Informations about GNU-General Public License for "svc2kxp.cmd"echo =============================================================== echo.echo Copyright (C) 2003-05 Ansgar Wiechers, Torsten Mannecho Contact: [url=mailto:admin@ntsvcfg.de]admin@ntsvcfg.de[/url]echo.echo This program is free software; you can redistribute it and/or modify it underecho the terms of the GNU General Public License as published by the Free Softwareecho Foundation; either version 2 of the License, or (at your option) any laterecho version. This program is distributed in the hope that it will be useful, butecho WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY orecho FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more echo details.echo.echo Y ou should have received a copy of the GNU General Public License along withecho this program; if not, write to the:echo.echo Free Software Foundation, Inc.echo 59 Temple Place, Suite 330echo Boston, MA 02111-1307, USA.echo.set /P CHS= [Press "H" for help or "Q" for quit]?CLSif /I "%CHS%"=="H" goto :HELPif /I "%CHS%"=="Q" goto :QUIT_EXTgoto GNU_GPL:VERSIONecho Checking system version ...if /I "%NT_SERVER_CHK%"=="FALSE" goto :SKIP_NT_SERVER_CHKREM Checking for running server version"%regedit%" /e "%TEMP%\~svr.txt" "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions"type "%TEMP%\~svr.txt"|"%find%" /i "Server" >NULif not errorlevel 1 set SERVER=TRUEtype "%TEMP%\~svr.txt"|"%find%" /i "LanMan" >NULif not errorlevel 1 set SERVER=TRUEif exist "%TEMP%\~svr.txt" del /F /Q "%TEMP%\~svr.txt"if /I "%SERVER%"=="TRUE" goto :NTSERVER:SKIP_NT_SERVER_CHKver | "%find%" /i "Windows 2000" > nulif not errorlevel 1 goto :OS2Kver | "%find%" /i "Windows XP" > nulif not errorlevel 1 goto :OSXPver | "%find%" /i "Microsoft Windows [V ersion 5.2.3790]" > nulif not errorlevel 1 goto :OSXP64echo !!Failed!!echo __________echo.echo Dieses Script ist nur unter Windows 2000 oder XP lauffaehig!echo.echo This script works only on Windows 2000/XP machines!echo.goto :QUIT:NOFINDecho.echo !!Failed!!echo __________echo.echo Leider konnte folgende Datei nicht gefunden werden:echo.echo Sorry, but following file is missing:echo.echo.echo # %SystemRoot%\System32\FIND.EXEecho.echo.goto :QUIT:NOREGEDITecho.echo !!Failed!!echo __________echo.echo Leider konnte folgende Datei nicht gefunden werden:echo.echo Sorry, but following file is missing:echo.echo.echo # %SystemRoot%\REGEDIT.EXEecho.echo.goto :QUIT:NTSERVERecho.echo !!Failed!!echo __________echo.echo Dieses Script unterstuetzt keine NT Server V ersionen!echo.echo This script doesn't support NT server versions!echo.goto :QUIT:OS2Krem Specific OS Detection Iset SYSTEM=2krem Testing for XP ServicePacks"%regedit%" /e "%TEMP%\~svclist.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentV ersion"type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 4" >NULif errorlevel==1 (type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 3" >NULif errorlevel==1 (type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 2" >NULif errorlevel==1 (type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 1" >NULif errorlevel==1 (echo !Windows 2000 [no or unknown Service Pack] detected!goto NO_2KSP)echo !Windows 2000 [Service Pack 1] detected!goto :NO_2KSP)echo !Windows 2000 [Service Pack 2] detected!goto :NO_2KSP)echo !Windows 2000 [Service Pack 3] detected!goto :NO_2KSP)echo !Windows 2000 [Service Pack 4] detected!goto :NO_2KSP:NO_2kSPif exist "%TEMP%\~svclist.txt" del /F /Q "%TEMP%\~svclist.txt"goto :CONTINUE:OSXPrem Specific OS detection IIset SYSTEM=xprem Testing for XP ServicePack 2"%regedit%" /e "%TEMP%\~svclist.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentV ersion"type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 2" >NULif errorlevel==1 (type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 1" >NULif errorlevel==1 (SET XPSP2=FALSEecho !Windows XP [no or unknown Service Pack] detected!goto NO_XPSP)SET XPSP2=FALSEecho !Windows XP [Service Pack 1] detected!goto :NO_XPSP)SET XPSP2=TRUEecho !Windows XP [ServicePack 2] detected!goto :NO_XPSP:OSXP64rem Specific OS detection IIset SYSTEM=xprem Testing for XP ServicePack 2"%regedit%" /e "%TEMP%\~svclist.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentV ersion"type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 2" >NULif errorlevel==1 (type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 1" >NULif errorlevel==1 (SET XPSP2=FALSEecho !EXPERIMENTAL! Windows XP64 [no or unknown Service Pack] detected!goto NO_XPSP)SET XPSP2=FALSEecho !EXPERIMENTAL! Windows XP64 [Service Pack 1] detected!goto :NO_XPSP)SET XPSP2=TRUEecho !EXPERIMENTAL! Windows XP64 [ServicePack 2] detected!goto :NO_XPSP:NO_XPSPif exist "%TEMP%\~svclist.txt" del /F /Q "%TEMP%\~svclist.txt"goto :CONTINUE:CONTINUEREM Creating subdirectory "ntsvcfg" in userprofile if necessaryif not exist "%USERPROFILE%\ntsvcfg\*.*" mkdir "%USERPROFILE%\ntsvcfg"REM Moving old script backup files to ...\%USERNAME%\ntsvcfg :if exist "%USERPROFILE%\dcom.reg" move /Y"%USERPROFILE%\dcom.reg" "%USERPROFILE%\ntsvcfg\dcom.reg"if exist "%USERPROFILE%\dcomp.reg" move /Y"%USERPROFILE%\dcomp.reg" "%USERPROFILE%\ntsvcfg\dcomp.reg"if exist "%USERPROFILE%\services.reg" move /Y"%USERPROFILE%\services.reg" "%USERPROFILE%\ntsvcfg\services.reg"if exist "%USERPROFILE%\current_services_config.reg" move /Y "%USERPROFILE%\current_services_config.reg""%USERPROFILE%\ntsvcfg\current_services_config.reg"if exist "%USERPROFILE%\smb.reg" move /Y"%USERPROFILE%\smb.reg" "%USERPROFILE%\ntsvcfg\smb.reg"if exist "%USERPROFILE%\FPRINT.REF" move /Y"%USERPROFILE%\FPRINT.REF" "%USERPROFILE%\ntsvcfg\FPRINT.REF"if exist "%USERPROFILE%\handler_aim.reg" move /Y"%USERPROFILE%\handler_aim.reg" "%USERPROFILE%\ntsvcfg\handler_aim.reg"if exist "%USERPROFILE%\handler_gopher.reg" move /Y "%USERPROFILE%\handler_gopher.reg" "%USERPROFILE%\ntsvcfg\handler_gopher.reg"if exist "%USERPROFILE%\handler_telnet.reg" move /Y "%USERPROFILE%\handler_telnet.reg" "%USERPROFILE%\ntsvcfg\handler_telnet.reg"if exist "%USERPROFILE%\services.reg.default" move /Y "%USERPROFILE%\services.reg.default" "%USERPROFILE%\ntsvcfg\services.reg.default"if exist "%USERPROFILE%\dcom.reg.default" move /Y"%USERPROFILE%\dcom.reg.default""%USERPROFILE%\ntsvcfg\dcom.reg.default"if exist "%USERPROFILE%\dcomp.reg.default" move /Y "%USERPROFILE%\dcomp.reg.default" "%USERPROFILE%\ntsvcfg\dcomp.reg.default"if exist "%USERPROFILE%\smb.reg.default" move /Y"%USERPROFILE%\smb.reg.default" "%USERPROFILE%\ntsvcfg\smb.reg.default"if exist "%USERPROFILE%\handler_aim.reg.default" move /Y "%USERPROFILE%\handler_aim.reg.default""%USERPROFILE%\ntsvcfg\handler_aim.reg.default"if exist "%USERPROFILE%\handler_gopher.reg.default" move /Y "%USERPROFILE%\handler_gopher.reg.default""%USERPROFILE%\ntsvcfg\handler_gopher.reg.default"if exist "%USERPROFILE%\handler_telnet.reg.default" move /Y "%USERPROFILE%\handler_telnet.reg.default""%USERPROFILE%\ntsvcfg\handler_telnet.reg.default"REM *****Declarations*****set SELECT="no"set SVC_BAK=%USERPROFILE%\ntsvcfg\services.regset SVC_SA V=%USERPROFILE%\ntsvcfg\current_services_config.regset DCOM_BAK=%USERPROFILE%\ntsvcfg\dcom.regset DCOMP_BAK=%USERPROFILE%\ntsvcfg\dcomp.regset SMB_BAK=%USERPROFILE%\ntsvcfg\smb.regset DCOM_TMP=%TEMP%\dcomoff.regset DCOMP_TMP=%TEMP%\dcompoff.regset SMB_TMP=%TEMP%\smboff.regset FPRINT=%USERPROFILE%\ntsvcfg\FPRINT.REFset HANDLER1=%USERPROFILE%\ntsvcfg\handler_aim.regset HANDLER2=%USERPROFILE%\ntsvcfg\handler_gopher.regset HANDLER3=%USERPROFILE%\ntsvcfg\handler_telnet.regset NB_TMP=%TEMP%\nb_off.vbsset srctmp=%USERPROFILE%\ntsvcfg\~srcreate.vbsset DHCP_CHANGES="YES"REM *****Options*****set SCHEDULER_ENABLED=NOset UseXPSysRestore=YESset RESTORE=NOset SVC_MOD=NOset USE_FPRINT=YESset Deactivate_NetBIOS=YESset RESTORE_MODE=2REM *****APP_PA THs******set NET=%SystemRoot%\system32\net.exeset SC=%SystemRoot%\system32\sc.exeset FC=%SystemRoot%\system32\fc.exeset IPCONFIG=%SystemRoot%\system32\ipconfig.exeecho Checking available permissions: [local], please wait ..."%net%" user "%USERNAME%" 2> nul | "%find%" /i "admin" | "%find%" /i /v "name" > nulif errorlevel 1 (echo " " " : [domain], please wait ..."%net%" user "%USERNAME%" /domain 2> nul | "%find%" /i "admin" | "%find%" /i /v "name" > nulif errorlevel 1 (echo.echo Failed!echo __________echo Leider verfuegen Sie nicht ueber die erforderlichen Rechte!echo Melden Sie sich bitte als Administrator an.echo.echo Sorry but you don't have the permissions required for this task.echo Please login as Administrator.echo.goto :END))set IMPORT_OLD_FILES=FALSErem searching for sc.exeif not exist "%FPRINT%" echo Checking for presence of SC.EXE ..."%sc%" qc > nul 2>&1if errorlevel 1 (echo !!Failed!!echo __________echo Die notwendige Datei SC.EXE konnte leider nicht unterecho [%SystemRoot%\SYSTEM32\] gefunden werden.echo Bitte laden Sie sich diese Datei von der unten genannten Adresse herunter:echo.echo SC.EXE couldn't be found in [%SystemRoot%\SYSTEM32\].echo Please download it from following location:echo.echo.echo -= ftp:///reskit/win2000/sc.zip =-echo.echo Self-installing SC.EXEecho ======================echo svx2kxp.cmd kann versuchen, die notwendige Datei selbst zu installieren.echo Hierzu benoetigen Sie eine bestehende Internetverbindung.echo.echo svc2kxp.cmd may try to download the required file SC.EXE itself if anecho active internet connection exists.goto :SC_DOWNLOAD)if /I "%1"=="/all" (set SELECT="/all"goto :SKIP_MENUE)if /I "%1"=="/relan" (set SELECT="/relan"goto :SKIP_MENUE)if /I "%1"=="/std" (set SELECT="/std"goto :SKIP_MENUE)if /I "%1"=="/default" goto :RESTORE_DEFAULTSrem checking for modified servicesif /I %CHK_SVC%==YES (if /I %USE_FPRINT%==YES (if exist "%FPRINT%" (rem Creating fingerprint of current service settings...if exist "%USERPROFILE%\ntsvcfg\svc2cmp.sav" del /F /Q "%USERPROFILE%\ntsvcfg\svc2cmp.sav""%sc%" query type= service state= all bufsize= 8192 | %FIND% "SERVICE_NAME" >%TEMP%\~svclist.txtfor /F "tokens=1*" %%a in (%TEMP%\~svclist.txt) do (echo %%b >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav""%sc%" query "%%b" | %FIND% "STA TE" >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav""%sc%" qc "%%b" | %FIND% "DISPLAY_NAME" >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav""%SC%" qc "%%b" | %FIND% "START_TYPE" >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav" echo. >> "%USERPROFILE%\ntsvcfg\svc2cmp.sav")del "%TEMP%\~svclist.txt""%FC%" "%FPRINT%" "%USERPROFILE%\ntsvcfg\svc2cmp.sav" >NULif errorlevel 1 goto :DIFFgoto OK:DIFFecho Checking for modified services ... failed-services maybe modified! [E]valuateset SVC_MOD=YESgoto :MOD_END:OKecho Checking for modified services ... OKset SVC_MOD=NOif exist "%USERPROFILE%\ntsvcfg\svc2cmp.sav" del /F /Q "%USERPROFILE%\ntsvcfg\svc2cmp.sav"goto :MOD_END:MOD_ENDREM)))set CHK_SVC=NOif /I "%1"=="/restore" goto :RESTORE:MENUEif /I "%1"=="/lan" goto :SKIP_MENUEecho.set /P CHS= 请选择您的优化方式: [1]深度优化[2]简洁优化:选择后按回车键继续if /I "%CHS%"=="1" (set SELECT="/lan"goto :SKIP_MENUE)if /I "%CHS%"=="2" (set SELECT="/std"goto :SKIP_MENUE)if /I "%CHS%"=="3" (set SELECT="/all"goto :SKIP_MENUE)if /I "%CHS%"=="4" goto :RESTOREif /I "%CHS%"=="R" goto :RESTOREif /I "%CHS%"=="M" goto :MORE_OPTIONSif /I "%SVC_MOD%"=="YES" if /I "%CHS%"=="E" goto :EV ALUA TE_SERVICESif /I "%CHS%"=="G" goto :CREA TING_NEW_FINGERPRINTif /I "%CHS%"=="Q" goto :QUITclsgoto :START:SKIP_MENUErem Checking if old restorefiles exists.rem if it is so old files will be restored before new changesif not exist "%SVC_BAK%" goto :NO_RESTOREif /I %RESTORE_MODE%==3 goto :NO_RESTOREif /I %RESTORE_MODE%==4 goto :NO_RESTOREset RESTORE=YESecho.echo _______________________________________________________________________ echo.echo [Selected Restore Mode: %RESTORE_MODE%]echo.echo # Achtung: Alte Sicherungsdateien gefunden!echo.echo "Svc2kXp.cmd" wurde schon einmal ausgefuehrt. Damit neue Aenderungenecho korrekt durchgefuehrt werden koennen, werden die Sicherungsdateienecho eingespielt.echo.echo.echo Attention: old restore-files found!echo.echo This program runs not for the first time. To apply all new changesecho correctly old restore files will used to get an definite state.echo.echo.echo # Starting restore ...goto RESTORE_EXT:NO_RESTORErem query if taskplaner should runif /I "%SYSTEM%"=="2k" goto :SKIP_SQUERYif /I "%SYSTEM%"=="xp" (if /I %SELECT%=="" goto :SKIP_SQUERYif /I %SELECT%=="/all" goto :SKIP_SQUERYif /I %XPSP2%==True (set SCHEDULER_ENABLED=YESgoto :SKIP_SQUERY))echo.echo.echo Rueckfrage / Queryecho ==================echo.echo Soll der Dienst "Taskplaner" beendet werden?echo.echo Wenn sie zeitgesteuerten Aufgaben [z.B. Antiviren-Updates] oder die automati- echo sche Erstellung von Systemwiederherstellungspunkten nicht benoetigen, druecken echo Sie eine BELIEBIGE TASTE, um auch Port 135 [RPC] sowie Port 1025 [Taskplaner] echo zu schliessen [empfohlen!]. Andernfalls druecken Sie "N"!echo.echo.echo Should the "scheduler service" be disabled?echo.echo If you have time-controlled tasks [i.e. A V-Updates] or you will not setecho automatic system restore points press ANY KEY TO CONTINUE to close port 135echo [RPC] and port 1025 [scheduler] instantly. Otherwise press "N"echo ___________________________________________echo.set /P UNDO= 是否对网络进行加速[Y/N]? 【选择后按回车键】if /I "%UNDO%"=="n" set SCHEDULER_ENABLED=YES:SKIP_SQUERYif not exist "%SVC_BAK%.default" (echo.echo Creating backup of defaults ..."%regedit%" /e "%SVC_BAK%.default" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"%regedit%" /e "%DCOM_BAK%.default" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole"%regedit%" /e "%DCOMP_BAK%.default" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc"%regedit%" /e "%SMB_BAK%.default" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters"%regedit%" /e "%HANDLER1%.default" HKEY_CLASSES_ROOT\AIM"%regedit%" /e "%HANDLER2%.default" HKEY_CLASSES_ROOT\gopher"%regedit%" /e "%HANDLER3%.default" HKEY_CLASSES_ROOT\telnetecho ... done.)if exist "%SVC_BAK%" (if /I %RESTORE_MODE%==2 goto :SKIP_SA VINGif /I %RESTORE_MODE%==4 goto :SKIP_SA VING)rem saving registry settingsecho _________________________________________________________________________ echo.echo [Selected Restore Mode: %RESTORE_MODE%]echo.echo Saving services settings toecho %SVC_BAK% ..."%regedit%" /e "%SVC_BAK%" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servicesecho Saving DCOM settings toecho %DCOM_BAK% ..."%regedit%" /e "%DCOM_BAK%" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole echo Saving DCOM standard protocols settings toecho %DCOMP_BAK% ..."%regedit%" /e "%DCOMP_BAK%" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc echo Saving SMB settings toecho %SMB_BAK%"%regedit%" /e "%SMB_BAK%" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parametersecho Saving URL-Handler [AIM, GOPHER, TELNET] toecho %HANDLER1%"%regedit%" /e "%HANDLER1%" HKEY_CLASSES_ROOT\AIMecho %HANDLER2%"%regedit%" /e "%HANDLER2%" HKEY_CLASSES_ROOT\gopherecho %HANDLER3%"%regedit%" /e "%HANDLER3%" HKEY_CLASSES_ROOT\telnetecho.echo All done.echo ___________________________________________echo.:SKIP_SA VINGif /I "%SYSTEM%"=="xp" (if /I %UseXPSysRestore%==YES (goto :XPSYSRESTORE)):XPSYSRESTORE_DONErem reconfigure servicesrem startup: demandecho.echo Setting services to "demand" ...echo ___________________________________________echo.echo # Checking DHCP ..."%ipconfig%" -all | "%find%" /i "Lease" > nulif errorlevel 1 (rem trying other method for DHCP"%ipconfig%" -all | "%find%" /i "DHCP-Server" > nulif errorlevel 1 (echo ... no active DHCP found.echo.echo Hinweisecho =======echo Ihre Konfiguration deutet an, das kein DHCP benoetigt wird. Fallsecho Sie dennoch einen DSL-Internetzugang besitzen und DHCP irrtuemlichecho deaktivert wurde, kann es nach einem Neustart zu Problemen mit derecho Internetverbindung kommen. Starten sie zur Problembehebung denecho DHCP-Dienst manuell neu.echo.echo Noticeecho ======echo Y our configuration indicates that DHCP no longer will be required. echo But if you use a DSL internet connection this choice probably echo might be wrong. If you experiences problems during accessing the echo internet please re-activate the "DHCP Service" manually.echo.echo ___________________________________________echo."%sc%" config DHCP start= demandgoto :SKIP_DHCP))set DHCP_CHANGES="NO"echo ... DHCP active, status of service will NOT be changed!echo.:SKIP_DHCP"%sc%" config dmadmin start= demand"%sc%" config DNSCache start= demand"%sc%" config mnmsrvc start= demand"%sc%" config MSIServer start= demand"%sc%" config NetDDE start= demand"%sc%" config NetDDEdsdm start= demand"%sc%" config Netman start= demand"%sc%" config NTLMSsp start= demand"%sc%" config NtmsSvc start= demand"%sc%" config PolicyAgent start= demand"%sc%" config RASAuto start= demand"%sc%" config RASMan start= demand"%sc%" config RSVP start= demand"%sc%" config Scardsvr start= demand"%sc%" query ScardDrv | "%find%" /i "OpenService FAILED" >NUL if errorlevel 1 "%sc%" config ScardDrv start= demandif /I %XPSP2%==True (rem If XP SP2 is installed there are less changes to XP-ICFif /I %SELECT%=="/std" goto :SKIP_FIREWALL)"%sc%" config SharedAccess start= demand:SKIP_FIREWALL"%sc%" config Sysmonlog start= demand"%sc%" config TAPISrv start= demand"%sc%" config TrkWks start= demand"%sc%" config UPS start= demand"%sc%" config W32Time start= demand"%sc%" config WMI start= demandif /I %SELECT%=="/all" ("%sc%" config SamSs start= demand"%sc%" config LmHosts start= demand"%sc%" config Winmgmt start= demand)if /I "%SYSTEM%"=="2k" ("%sc%" config AppMgmt start= demand"%sc%" config Browser start= demand"%sc%" config clipsrv start= demand"%sc%" config EventSystem start= demand"%sc%" config Fax start= demand"%sc%" config netlogon start= demand"%sc%" config RPCLocator start= demand"%sc%" config Utilman start= demandif /I %SELECT%=="/all" ("%sc%" config seclogon start= demand"%sc%" config RPCSs start= demand"%sc%" config lanmanServer start= demand))if /I "%SYSTEM%"=="xp" ("%sc%" config ALG start= demand"%sc%" config FastUserSwitchingCompatibility start= demand"%sc%" config helpsvc start= demand"%sc%" config ImapiService start= demand"%sc%" config Nla start= demand"%sc%" config RdSessMgr start= demand"%sc%" config seclogon start= demand"%sc%" config stisvc start= demand"%sc%" config SwPrv start= demand"%sc%" config TermService start= demand"%sc%" config upnphost start= demand"%sc%" config VSS start= demand"%sc%" query WmdmPmSp | "%find%" /i "OpenService FAILED" >NUL if errorlevel 1 "%sc%" config WmdmPmSp start= demand"%sc%" config WmiApSrv start= demandrem Wireless Zero Configuration - fuer WLAN-V erbindungen notwendig. rem Falls erforderlich auf AUTO stellen.rem "%sc%" config WZCSVC start= demand)echo.rem startup: autoecho Setting services to "auto" ..."%sc%" config dmserver start= auto"%sc%" config eventlog start= auto"%sc%" config PlugPlay start= auto"%sc%" config ProtectedStorage start= auto"%sc%" config sens start= auto"%sc%" config spooler start= autoif /I "%SYSTEM%"=="2k" ("%sc%" config lanmanworkstation start= auto"%sc%" config alerter start= auto)if /I "%SYSTEM%"=="xp" ("%sc%" query InteractiveLogon | "%find%" /i "OpenService FAILED" >NUL if errorlevel 1 "%sc%" config InteractiveLogon start= auto"%sc%" config Audiosrv start= auto"%sc%" config CryptSvc start= auto"%sc%" config RPCSs start= auto"%sc%" config ShellHWDetection start= auto"%sc%" config srservice start= auto"%sc%" query uploadmgr | "%find%" /i "OpenService FAILED" >NULif errorlevel 1 "%sc%" config uploadmgr start= auto"%sc%" config WebClient start= auto)echo.rem startup: disabledecho Setting services to "disabled" ..."%sc%" config cisvc start= disabled"%sc%" config MSDTC start= disabled"%sc%" config RemoteAccess start= disabled"%sc%" config TlntSvr start= disabled"%sc%" config messenger start= disabledif /I %SELECT%=="/all" ("%sc%" query BITS | "%find%" /i "SERVICE_NAME" >NULif not errorlevel 1 "%sc%" config BITS start= disabled"%sc%" query wuauserv | "%find%" /i "SERVICE_NAME" >NULif not errorlevel 1 "%sc%" config wuauserv start= disabled"%sc%" config schedule start= disabled"%sc%" config RemoteRegistry start= disabled)if /I "%SYSTEM%"=="xp" ("%sc%" config ERSvc start= disabled"%sc%" config HidServ start= disabled"%sc%" config SSDPSRV start= disabled。

一键清理系统垃圾文件脚本(代码)

一键清理系统垃圾文件脚本(代码)

一键清理系统垃圾文件脚本@echo offecho 清空IE临时文件目录...del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\Local Settings\Temp\*.*"echo 正在清除系统临时文件*.tmp *._tmp *.log *.chk *.old ,请稍等... del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mprem .log大部分有可能有用rem del /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.oldecho 清空垃圾箱,备份文件和预缓存脚本...del /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\temprem cooke和最近历史还是保留吧...rem del /f /q %userprofile%\COOKIES s\*.*rem del /f /q %userprofile%\recent\*.*echo 清理系统盘无用文件...%windir%\system32\sfc.exe /purgecacheecho 优化预读信息...%windir%\system32\defrag.exe %systemdrive% -becho 清除系统完成!echo. & pause@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause。

Win7如何新建一键清理系统垃圾文件BAT脚本

Win7如何新建一键清理系统垃圾文件BAT脚本

Win7如何新建一键清理系统垃圾文件BAT脚本一键清理系统垃圾window7版,是一个批处理文件,那么Win7如何新建一键清理系统垃圾文件BAT脚本呢?下面店铺就为大家带来了Win7新建一键清理系统垃圾文件BAT脚本的方法。

Win7新建一键清理系统垃圾文件BAT脚本方法1、点击“开始——程序——附件——记事本”,创建一个新的记事本。

2、将以下代码内容复制到新建的文本文档里@echo offecho 清除系统垃圾过程中,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统垃圾完成!按任意键继续……echo. & pause3、点击“文件——另存为”,文件名为“ 清除系统垃圾.bat ”,文件类型选择“所有文件”。

Dos批处理编写一键清理系统垃圾的bat代码

Dos批处理编写一键清理系统垃圾的bat代码

Dos批处理编写⼀键清理系统垃圾的bat代码del 命令的参数/F 强制删除只读⽂件。

/S 从所有⼦⽬录删除指定⽂件。

/Q 安静模式。

删除全局通配符时,不要求确认。

rd 命令的参数/s 除⽬录本⾝外,还将删除指定⽬录下的所有⼦⽬录和⽂件。

⽤于删除⽬录树。

/q 安静模式/s 删除⽬录树时不要求确认。

代码⼀@echo off & title 清理系统垃圾del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*.mp3del /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /f /q %userprofile%\cookies\*.*del /f /s /q "C:\Documents and Settings\Administrator\Local Settings\History"del /f /s /q "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files"del /f /s /q "C:\Documents and Settings\Administrator\Local Settings\Temp"del /f /s /q "C:\Documents and Settings\Administrator\Local Settings\Temp\_xl7vss_"del /f /s /q "D:\Program Files\QvodPlayer\Data"代码⼆@echo offecho 正在清理系统垃圾⽂件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清理系统垃圾完成!然后把上⾯的内容保存为清理垃圾批处理.bat,当然⼤家可以根据⾃⼰的需求增减⽬录或⽂件类型即可。

新版WIN7系统垃圾清理BAT

新版WIN7系统垃圾清理BAT

新版WIN7系统垃圾清理BAT新版WIN7系统垃圾清理BAT----因您在,我很幸福写作上一篇博文提到的批处理里面有一些写得不对,那些命令在XP下是有用的,但在WIN7下会出现找不到路径或文件的提示。

今天有时间自己作了修改,顺即发上来。

这个批处理:1、修正了原来指向XP的路径(实现真正指向WIN7);2、真正实现对上网记录的清除——包括:临时文件、历史记录、cookie、保存的密码和网页表单信息;3、添加了对WIN7自动更新留下的无用的文件的完全清理;4、添加了对各个磁盘的“回收站”的真正清空!5、真正实现您的私隐保护;这里使用一个FOR循环命令,关于FOR命令较为复杂,这里使用是简单的:格式:for /f [ 变量 ] in [命令] to [ 命令 ]随着对win7的越来越熟悉,本文的批处理也在不断不更新。

2010.06.05 再次更新,在主页的另一篇博文里。

以下都为旧版本!以下是全部命令:当然,您也可以自己加入您想要的命令。

对于批处理,我是个菜鸟,有班门弄斧的嫌疑!@echo offcolor 0becho========================================= =========================echo.echo 您已启动 WIN 7 系统垃圾清理,这里运行的命令都很安全!echo.echo========================================= =========================echo.echo 在程序没有结结束信息时,请勿关闭本窗口!echo.echo========================================= =========================echo.echo 正在清除系统垃圾文件,请稍后......echo.echo========================================= =========================echo.echo 删除自动更新补丁备份目录RD %windir%\$hf_mig$ /Q /Secho 把补丁卸载文件夹的名字保存成Patches.txtdir %windir%\$NtUninstall* /a:d /b >%windir%\Patches.txt echo 从Patches.txt中读取文件夹列表并且删除文件夹for /f %%i in (%windir%\Patches.txt) do rd %windir%\%%i /s /qecho 删除Patches.txtdel %windir%\Patches.txt /f /qecho 删除补丁安装记录内容del %windir%\*.log /f /qecho 删除自动更新时下载的软件附带的许可协议书等文件del %windir%\SoftwareDistribution\Download\*.* /f /qecho 删除自动更新后留下的软件的安装包(有些更新留下安装包)del %windir%\SoftwareDistribution\Download\Install\*.* /f /qecho 删除系统盘目录下临时文件del /f /s /q %systemdrive%\*.tmpecho 删除系统盘目录下临时文件del /f /s /q %systemdrive%\*._mpecho 删除系统盘目录下日志文件del /f /s /q %systemdrive%\*.logecho 删除系统盘目录下GID文件del /f /s /q %systemdrive%\*.gidecho 删除系统目录下scandisk(磁盘扫描留下的临时文件)del /f /s /q %systemdrive%\*.chkecho 删除系统目录下old文件(旧备份文件)del /f /s /q %systemdrive%\*.oldecho 删除回收站的无用文件(如果您忘记清空回收站的话)del /f /s /q c:\$recycle.bin\*.*del /f /s /q d:\$recycle.bin\*.*del /f /s /q e:\$recycle.bin\*.*del /f /s /q f:\$recycle.bin\*.*del /f /s /q g:\$recycle.bin\*.*echo 删除系统目录下备份文件del /f /s /q %windir%\*.bakecho 删除应用程序临时文件del /f /s /q %windir%\prefetch\*.*echo 删除系统维护等操作产生的临时文件的文件夹,然后再建一个新的临时文件夹rd /s /q %windir%\temp & md %windir%\tempecho 删除上网产生的临时文件和记录del /f /s /q"%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"echo 删除当前用户日常操作临时文件del /f /s /q "%userprofile%\local settings\temp\*.*"echo 删除最近访问记录(类似XP开始菜单中的文档里面的东西,主要是保护您的私隐)del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\ *.*"echo========================================= =========================echo.echo 已清理完成!echo.echo========================================= =========================echo.echo 再见!echo.echo ——因您在,我很幸福编辑echo.echo========================================= =========================echo.echo. & pause将上面的命令复制到记事本,然后将记事本的后缀名txt改为——bat——确定,即可以运行。

做到一键清理垃圾自动清理,输入这代码轻松搞定!

做到一键清理垃圾自动清理,输入这代码轻松搞定!

做到一键清理垃圾自动清理,输入这代码轻松搞定!
最近,很多朋友问我,电脑升级至win10系统之后,系统C盘占用非常的严重,原本系统盘还有60 G可用空间,现在就只剩50 G左右,相当于占用了差不多十个G,影响电脑运行窗口。

其实,这是因为电脑升级残留的一些系统垃圾文件,今天小编就教你怎么一键清理垃圾。

教程一:
1、首先,进入系统桌面,右键选择新建文本文档
2、输入图二的代码:
3、接着,我们要保存好文本,选择重命名为“一键系统垃圾清理.bat”
4、随后,页面会弹出是否确认更改拓展名的提示,点击选择'是'
5、或者,可以点击文本文档选择另存为,如图所示设置,桌面就会出现可一键清理垃圾的程序图标
6、最后,你只需要双击刚刚修改好的图标,等待一键清理垃圾,按任意键结束即可完成清理
教程二:
1、首先,新建一个记事本,复制粘贴相关的代码,如下所示
2、然后,重命名记事本为清除系统LJ.bat,点击保存后,只需双击运行即可一键清除垃圾
3、之后,根据页面提示,点击窗口或者按任意键,就可以结束清理
4、电脑经过深度清理,就会恢复较好的运行速度,而这个.bat文件就可以长期放在桌面以便使用
教程三:
1、下载安全可靠的清理软件,为了方便操作,它们一般都会具备一键清理的功能
2、弹出新页面后,你根据自己的需要,选择需要清理的位置
3、确认之后,点击清理,耐心等待即可完成一键清理垃圾。

几个电脑系统优化清除垃圾bat命令介绍

几个电脑系统优化清除垃圾bat命令介绍

⼏个电脑系统优化清除垃圾bat命令介绍本⽂将教⼤家⽤烈写批处理运⾏的⽅式让你电脑优化快⼀点和清除垃圾。

⼀.清理垃圾在Windows在安装和使⽤过程中都会产⽣相当多的垃圾⽂件,包括临时⽂件(如:*.tmp、*._mp)⽇志⽂件(*.log)、临时帮助⽂件(*.gid)、磁盘检查⽂件(*.chk)、临时备份⽂件(如:*.old、*.bak)以及其他临时⽂件。

特别是如果⼀段时间不清理IE的临时⽂件夹“Temporary Internet Files”,其中的缓存⽂件有时会占⽤上百MB的磁盘空间。

这些LJ⽂件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运⾏慢如蜗⽜。

这点相信你肯定忍受不了吧!所以应及时清理系统的LJ⽂件的淤塞,保持系统的“苗条”⾝材,轻松流畅上⽹!朋友来吧,现在就让我们⼀起来快速清除系统垃圾吧!!下⾯是步骤很简单就两步!在电脑屏幕的左下⾓按“开始→程序→附件→记事本”,把下⾯的⽂字复制进去(⿊⾊部分),点“另存为”,路径选“桌⾯”,保存类型为“所有⽂件”,⽂件名为“清除系统LJ.bat”,就完成了。

记住后缀名⼀定要是.bat,ok!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾⽂件,⼤约⼀分钟不到。

======就是下⾯的⽂字(这⾏不⽤复制)=============================@echo offecho 正在清除系统垃圾⽂件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause=====到这⾥为⽌(这⾏不⽤复制)==============================================以后只要双击运⾏该⽂件,当屏幕提⽰“清除系统LJ完成!⼆,优化开机⽅法基本同第⼀,在电脑屏幕的左下⾓按“开始→程序→附件→记事本”,把下⾯的⽂字复制进去(⿊⾊部分),点“另存为”,路径选“桌⾯”,保存类型为“所有⽂件”,⽂件名为“优化开机.bat”,就完成了。

一键清理电脑系统垃圾文件.bat 让你的电脑快如飞

一键清理电脑系统垃圾文件.bat 让你的电脑快如飞

一键清理电脑系统垃圾文件.bat 让你的电脑快如飞一键清理电脑系统垃圾文件.bat让你的电脑快如飞迷人的音乐!迷人的老村长家园欢迎您迷人的音乐!迷人的老村长家园欢迎您迷人的音乐迷人的老村长家园欢迎您删除系统垃圾文件无非是增加系统盘的空间,提高运行速度和性能。

一键清理电脑系统垃圾文件.bat让你的电脑快如飞。

方法如下:在电脑屏幕的左下角按“开始——程序——附件——记事本”,把下面的文字复制进去(黑色部分),点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清除系统LJ.bat”,就完成了。

记住后缀名一定要是.bat。

你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。

======就是下面的文字(这行不用复制)=============================@echooffecho 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmpdel/f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s/q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q%systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q%windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp& md %windir%\tempdel /f /q %userprofile%\cookies\*.*del /f /q%userprofile%\recent\*.*del /f /s /q "%userprofile%\LocalSettings\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\LocalSettings\Temp\*.*"del /f /s /q"%userprofile%\recent\*.*"echo 清除系统LJ完成!echo. &pause=====到这里为止(这行不用复制)==========================以后只要双击运行该文件,当屏幕提示“清除系统LJ完成,你的系统就会变得清净苗条了。

(代码)一键清理Windows7系统垃圾文件

(代码)一键清理Windows7系统垃圾文件

一键清理Windows7系统垃圾文件!轻松又愉快!非常简单的一段代码。

只要复制了,做成一个BAT文件就可以了。

代码如下:@echo offcolor 0atitle 清理win7系统垃圾---echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo.★☆☆★echo.★☆☆★echo.★☆☆★echo ★☆正在清除系统垃圾文件,请稍等..... ☆★echo.★☆☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo 清理垃圾文件,速度由电脑文件大小而定。

在没看到结尾信息时echo 请勿关闭本窗口。

echo 正在清除系统垃圾文件,请稍后......echo 删除补丁备份目录RD %windir%\$hf_mig$ /Q /Secho 把补丁卸载文件夹的名字保存成2950800.txtdir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txtecho 从2950800.txt中读取文件夹列表并且删除文件夹for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /qecho 删除2950800.txtdel %windir%\2950800.txt /f /qecho 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件)del %windir%\KB*.log /f /qecho 删除系统盘目录下临时文件del /f /s /q %systemdrive%\*.tmpecho 删除系统盘目录下临时文件del /f /s /q %systemdrive%\*._mpecho 删除系统盘目录下日志文件del /f /s /q %systemdrive%\*.logecho 删除系统盘目录下GID文件(属于临时文件,具体作用不详)del /f /s /q %systemdrive%\*.gidecho 删除系统目录下scandisk(磁盘扫描)留下的无用文件del /f /s /q %systemdrive%\*.chkecho 删除系统目录下old文件del /f /s /q %systemdrive%\*.oldecho 删除回收站的无用文件del /f /s /q %systemdrive%\recycled\*.*echo 删除系统目录下备份文件del /f /s /q %windir%\*.bakecho 删除应用程序临时文件del /f /s /q %windir%\prefetch\*.*echo 删除系统维护等操作产生的临时文件rd /s /q %windir%\temp & md %windir%\tempecho 删除当前用户的COOKIE(IE)del /f /q %userprofile%\cookies\*.*echo 删除internet临时文件del /f /s /q "%userprofile%\local settings\temporary internet files\*.*" echo 删除当前用户日常操作临时文件del /f /s /q "%userprofile%\local settings\temp\*.*"echo 删除访问记录(开始菜单中的文档里面的东西)del /f /s /q "%userprofile%\recent\*.*"echoecho ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆☆★echo.★☆☆★echo.★☆☆★echo ★☆☆★echo ★☆恭喜您!清理全部完成!☆★echo.★☆☆★echo ★☆☆★echo.★☆☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo.echo. & pause步骤:1,复制代码到TXT。

bat命令大全清理系统垃圾更简单

bat命令大全清理系统垃圾更简单

1.Echo 命令命令打开回显或关闭请求回显功能,或显示消息。

如果没有任何参数,echo 命令将显示当前回显设置。

显设置。

语法语法echo [{on|off}] [message] Sample :echo off / echo hello world 在实际应用中我们会把这条命令和重定向符号(也称为管道符号,一般用> >> ^)结合来实)结合来实现输入一些命令到特定格式的文件中.这将在以后的例子中体现出来。

这将在以后的例子中体现出来。

2.@ 命令命令表示不显示@后面的命令,后面的命令,在入侵过程中在入侵过程中在入侵过程中(例如使用批处理来格式化敌人的硬盘)(例如使用批处理来格式化敌人的硬盘)(例如使用批处理来格式化敌人的硬盘)自然不能自然不能让对方看到你使用的命令啦。

让对方看到你使用的命令啦。

Sample :@echo off @echo Now initializing the program,please wait a minite... @format X: /q/u/autoset (format 这个命令是不可以使用/y 这个参数的,可喜的是微软留了个autoset 这个参数给我们,效果和/y 是一样的。

) 3.Goto 命令命令指定跳转到标签,找到标签后,程序将处理从下一行开始的命令。

指定跳转到标签,找到标签后,程序将处理从下一行开始的命令。

语法:goto label (label 是参数,指定所要转向的批处理程序中的行。

)Sample :if {%1}=={} goto noparms if {%2}=={} goto noparms (如果这里的if 、%1、%2你不明白的话,先跳过去,后面会有详细的解释。

)@Rem check parameters if null show usage :noparms echo Usage: monitor.bat ServerIP PortNumber goto end 标签的名字可以随便起,标签的名字可以随便起,但是最好是有意义的字母啦,但是最好是有意义的字母啦,但是最好是有意义的字母啦,字母前加个:字母前加个:字母前加个:用来表示这个字母是标用来表示这个字母是标签,goto 命令就是根据这个:命令就是根据这个:来寻找下一步跳到到那里。

清除系统垃圾的代码

清除系统垃圾的代码

清除系统垃圾的代码清除系统垃圾是为了保持系统的稳定性和提高其运行速度,同时也可以释放磁盘空间。

以下是一份清除系统垃圾的代码,适用于Windows操作系统。

import osdef clear_system_junk():paths = ["C:\\Windows\\Temp","C:\\Users\\Username\\AppData\\Local\\Temp","C:\\Windows\\Prefetch","C:\\Windows\\SoftwareDistribution\\Download","C:\\Windows\\Logs\\CBS"]for path in paths:if os.path.exists(path):print("Cleaning up path", path)try:for root, dirs, files in os.walk(path):for file in files:os.remove(os.path.join(root, file))for folder in dirs:os.rmdir(os.path.join(root, folder))except PermissionError:print("Permission denied to access", path)else:print(path, "does not exist")return "System junk cleared successfully"代码首先定义了需要清除垃圾的文件夹路径,如C:\Windows\Temp和C:\Users\Username\AppData\Local\Temp等,这些路径包含了一些临时文件、日志和缓存文件,占用了较多的磁盘空间。

教你如何清理历史记录的代码

教你如何清理历史记录的代码

复制代码代码如下:title: IE temporary file recho 正在去除Internet临时文件 ............RunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 8echo 去除CookieRunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 2echo 去除历史记录RunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 1echo 去除表单数据RunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 16echo 去除密码RunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 32echo 去除上述全部工程RunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 255echo 去除上述全部工程,以及IE7中使用的加载项所保存的各种数据RunDll32.e某e InetCpl.cpl,ClearMyTrackByProce 4351mg 某 your uele file have been crahed,mater........paue批处理怎样清理某P系统的使用痕迹能?某p系统下,能否用批处理实现清理使用痕迹的功能?IE使用痕迹系统使用痕迹软件使用痕迹等等。

网上搜索了几个,感觉都不太好用。

不想用软件清理,只想运行一下bat文件,就自动清理完了。

有没有bat批处理,实现清理天使.rar 这个软件里面的清理痕迹功能?其实我主要是想清理下上网痕迹这个软件,清理的比拟彻底!复制代码代码如下:mode con col=50 line=15echo 10秒后即将进行清理,请先关闭浏览器ping -n 10 127.1>nul 2>nulclecho 清理中,请稍后。

清理ie和使用历史记录的bat代码

清理ie和使用历史记录的bat代码

清理IE和使用历史记录的bat代码代码如下:@echo offtitle: IE temporary file deleterecho 正在清除Internet临时文件RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8echo 清除CookiesRunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2echo 清除历史记录RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1echo 清除表单数据RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16echo 清除密码RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32echo 清除上述全部项目RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255echo 清除上述全部项目,以及IE7中使用的加载项所保存的各种数据RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351msg * your useless files have been crashed,master..pause批处理怎样清理XP系统的使用痕迹能?xp系统下,能否用批处理实现清理使用痕迹的功能?IE使用痕迹系统使用痕迹软件使用痕迹等等。

网上搜索了几个,感觉都不太好用。

不想用软件清理,只想运行一下bat文件,就自动清理完了。

有没有bat批处理,实现清理天使.rar 这个软件里面的清理痕迹功能?ygqiang 中尉Rank: 5Rank: 5 帖子356 积分803 技术1 捐助0 注册时间2010-4-18 2楼发表于2011-4-8 14:03 | 只看该作者其实我主要是想清理下上网痕迹网上下载的bat文件,不行这个软件,清理的比较彻底!代码如下:@echo offmode con cols=50 lines=15echo 10秒后即将进行清理,请先关闭浏览器ping -n 10 127.1nul 2nulclsecho 清理中,请稍后。

一键清理系统垃圾文件.bat

一键清理系统垃圾文件.bat

一键清理系统垃圾文件.bat要轻松流畅上网你是否注意到你的电脑系统磁盘的可用空间正在一天天在减少呢?是不是像老去的猴王一样动作一天比一天迟缓呢?是不是游戏一天一天慢下来呢?没错!在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp、*._mp)日志文件(*.log)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件。

特别是如果一段时间不清理IE的临时文件夹“Temporary Internet Files”,其中的缓存文件有时会占用上百MB的磁盘空间。

这些LJ文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行慢如蜗牛。

这点相信你肯定忍受不了吧!所以应及时清理系统的LJ文件的淤塞,保持系统的“苗条”身材,轻松流畅上网!朋友来吧,现在就让我们一起来快速清除系统垃圾吧!!下面是步骤很简单就两步!在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去(黑色部分),点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清除系统LJ.bat”,就完成了。

记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。

======就是下面的文字(这行不用复制)=============================@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause=====到这里为止(这行不用复制)==============================================以后只要双击运行该文件,当屏幕提示“清除系统LJ完成!就还你一个“苗条”的系统了!!到时候再看看你的电脑,是不是急速如飞呢?可别忘了回帖喔!这招比那些所谓的优化大师好用!最重要的是无论在公司默认的系统环境还是在自己家中的电脑都不会破坏系统文件绝对不会删除系统和有用的文件!。

Win7一键清理系统垃圾bat的方法

Win7一键清理系统垃圾bat的方法

Win7一键清理系统垃圾bat的方法推荐文章苹果5s手机清理系统垃圾的方法热度:windows7电脑清理系统垃圾的方法热度: win8如何清理系统垃圾的方法热度:安卓手机清理系统垃圾文件方法热度:爱疯6s手机清理系统垃圾文件方法热度:你还在为不知道Win7一键清理系统垃圾bat的方法而不知所措么?下面来是店铺为大家收集的Win7一键清理系统垃圾bat的方法,欢迎大家阅读:Win7一键清理系统垃圾bat的方法1、复制上篇经验的代码,放入记事本。

2、源代码如下:@echo offecho 正在清除系统垃圾文件,请稍等。

del /f /s /q %systemdrive%*.tmpdel /f /s /q %systemdrive%*._mpdel /f /s /q %systemdrive%*.logdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%recycled*.*del /f /s /q %windir%*.bakdel /f /s /q %windir%prefetch*.*rd /s /q %windir%temp & md %windir%tempdel /f /q %userprofile%cookies*.*del /f /q %userprofile%recent*.*del /f /s /q “%userprofile%Local SettingsTemporary Internet Files*.*”del /f /s /q “%userprofile%Local SettingsTemp*.*”del /f /s /q “%userprofile%recent*.*”echo 清除系统LJ完成!echo. & pause3、记事本重命名:清除系统LJ.bat(复制这个名称)保存即可,双击运行。

清理垃圾的两个小bat

清理垃圾的两个小bat

1 新建一个记事本,在里面粘贴以下内容@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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 清除系统LJ完成!echo. & pause然后把记事本另存为清除垃圾.bat(可命名为其它的名字,但后缀不能变)的批处理文件然后找到这个文件,点击打开,就可以执行清除垃圾的命令啦。

2 其实操作方法也跟XP一样的,只是.bat文件内容变了一些,来看下具体操作吧,先新建一个记事本,打开然后在里面粘贴如下内容:@echo offcolor 0atitle windows7系统垃圾清理---echo....清理系统垃圾文件,请稍等......echo 清理垃圾文件,速度由电脑文件大小而定。

一键清理垃圾bat

一键清理垃圾bat

一键清理垃圾bat随着电脑使用时间的增长,系统中垃圾文件越来越多,严重影响了电脑的运行速度和性能。

为了解决这个问题,我们可以通过编写一个一键清理垃圾的bat文件来帮助我们快速清理电脑中的垃圾文件,提高电脑的运行效率。

首先,我们需要了解一键清理垃圾bat文件的原理和编写方法。

一键清理垃圾bat文件的原理是通过批处理脚本来执行一系列的清理操作,包括删除临时文件、清理回收站、清理系统缓存等。

编写一键清理垃圾bat文件的方法是使用文本编辑器,编写一系列命令,然后保存为bat格式的文件。

接下来,我们来编写一键清理垃圾bat文件。

首先,打开文本编辑器,输入以下命令:```。

@echo off。

echo 正在清理垃圾文件,请稍候...del /f /s /q %temp%/。

del /f /s /q C:\Windows\Temp\。

del /f /s /q C:\Users\用户名\AppData\Local\Temp\。

rd /s /q C:\Windows\Prefetch。

cleanmgr /sagerun:1。

echo 清理完成!pause。

```。

上面的命令是一个简单的一键清理垃圾bat文件,包括删除临时文件、清理系统缓存和运行磁盘清理工具。

其中,`del /f /s /q %temp%/`命令用于删除临时文件,`del /f /s /q C:\Windows\Temp\`命令用于清理系统临时文件,`del /f /s /q C:\Users\用户名\AppData\Local\Temp\`命令用于清理用户临时文件,`rd /s /qC:\Windows\Prefetch`命令用于清理系统预取文件,`cleanmgr /sagerun:1`命令用于运行磁盘清理工具。

最后,使用`echo`命令输出清理完成的提示信息,并使用`pause`命令暂停脚本的执行,以便查看清理结果。

保存以上命令为一个bat格式的文件,例如`clean.bat`。

[电脑技术]XP和Win7一键清理垃圾系统代码

[电脑技术]XP和Win7一键清理垃圾系统代码

[电脑技术]XP和Win7一键清理垃圾系统代码第一步打开记事本,也就是TXT文本文档,自己手工做一个系统批量处理的执行文件,清理电脑没有用的垃圾和上网缓存文件。

下面有XP的和Win7的已经写好的代码。

直接复制保存格式就可以打开使用。

(简单版)XP一键清理垃圾系统.BAT代码如下:echo正在清理系统垃圾文件,请稍候......del/f/s/q%systemdrive%\*.tmpRD%windir% \$hf_mig$/Q/Sdel%windir%\2950800.txt/f/qfor/f% %iin(%windir%\2950800.txt)dord%windir%\%%i/s/q dir%windir%\$NtUninstall*/a:d/b%windir%\295080 0.txtdel/f/s/q%systemdrive%\*._mpdel/f/s/q%systemdrive%\*.logdel/f/s/q%systemdrive%\*.giddel /f/s/q%systemdrive%\*.pnfdel/f/s/q%systemdrive %\infcache.1del/f/s/q%systemdrive%\*.chkdel/f/ s/q%systemdrive%\*.olddel/f/s/q%systemdrive%\r ecycled\*.*del/f/s/q%windir%\*.bakdel/f/s/q%wi ndir%\prefetch\*.*rd/s/q%windir%\temp&md%w indir%\tempdel/f/q%userprofile%\cookies\*.*del /f/q%userprofile%\recent\*.*del/f/s/q"%userpro file%\LocalSettings\TemporaryInterFiles\*.*"de l/f/s/q"%userprofile%\LocalSettings\Temp\*.*"d el/f/s/q"%userprofile%\recent\*.*"rd/s/q"c:\vo d_cache_data"2NULrd/s/q"d:\vod_cache_data"2NUL rd/s/q"e:\vod_cache_data"2NULrd/s/q"f:\vod_cac he_data"2NULrd/s/q"G:\vod_cache_data"2NULrd/s/ q"h:\vod_cache_data"2NULrd/s/q"I:\vod_cache_da ta"2NULrd/s/q"j:\vod_cache_data"2NULrd/s/q"k:\ vod_cache_data"2NULrd/s/q"l:\vod_cache_data"2NULrd/s/q"m:\vod_cache_data"2NULrd/s/q"n:\vod_c ache_data"2NULrd/s/q"o:\vod_cache_data"2NULrd/ s/q"p:\vod_cache_data"2NULrd/s/q"q:\vod_cache_ data"2NULrd/s/q"r:\vod_cache_data"2NULrd/s/q"s :\vod_cache_data"2NULrd/s/q"t:\vod_cache_data" 2NULrd/s/q"u:\vod_cache_data"2NULrd/s/q"v:\vod _cache_data"2NULrd/s/q"w:\vod_cache_data"2NULr d/s/q"x:\vod_cache_data"2NULrd/s/q"y:\vod_cach e_data"2NULrd/s/q"z:\vod_cache_data"2NULrd/s/q "c:\gvod_cache_data"2NULrd/s/q"d:\gvod_cache_d ata"2NULrd/s/q"e:\gvod_cache_data"2NULrd/s/q"f :\gvod_cache_data"2NULrd/s/q"G:\gvod_cache_dat a"2NULrd/s/q"h:\gvod_cache_data"2NULrd/s/q"I:\ gvod_cache_data"2NULrd/s/q"j:\gvod_cache_data" 2NULrd/s/q"k:\gvod_cache_data"2NULrd/s/q"l:\gv od_cache_data"2NULrd/s/q"m:\gvod_cache_data"2N ULrd/s/q"n:\gvod_cache_data"2NULrd/s/q"o:\gvod_cache_data"2NULrd/s/q"p:\gvod_cache_data"2NUL rd/s/q"q:\gvod_cache_data"2NULrd/s/q"r:\gvod_c ache_data"2NULrd/s/q"s:\gvod_cache_data"2NULrd /s/q"t:\gvod_cache_data"2NULrd/s/q"u:\gvod_cac he_data"2NULrd/s/q"v:\gvod_cache_data"2NULrd/s /q"w:\gvod_cache_data"2NULrd/s/q"x:\gvod_cache _data"2NULrd/s/q"y:\gvod_cache_data"2NULrd/s/q "z:\gvod_cache_data"2NULrd/s/q"c:\$recycle.bin \vod_cache_data"2NULrd/s/q"d:\$recycle.bin\vod _cache_data"2NULrd/s/q"e:\$recycle.bin\vod_cac he_data"2NULrd/s/q"f:\$recycle.bin\vod_cache_d ata"2NULrd/s/q"G:\$recycle.bin\vod_cache_data" 2NULrd/s/q"h:\$recycle.bin\vod_cache_data"2NUL rd/s/q"I:\$recycle.bin\vod_cache_data"2NULrd/s /q"j:\$recycle.bin\vod_cache_data"2NULrd/s/q"k :\$recycle.bin\vod_cache_data"2NULrd/s/q"l:\$r ecycle.bin\vod_cache_data"2NULrd/s/q"m:\$recycle.bin\vod_cache_data"2NULrd/s/q"n:\$recycle.b in\vod_cache_data"2NULrd/s/q"o:\$recycle.bin\v od_cache_data"2NULrd/s/q"p:\$recycle.bin\vod_c ache_data"2NULrd/s/q"q:\$recycle.bin\vod_cache _data"2NULrd/s/q"r:\$recycle.bin\vod_cache_dat a"2NULrd/s/q"s:\$recycle.bin\vod_cache_data"2N ULrd/s/q"t:\$recycle.bin\vod_cache_data"2NULrd /s/q"u:\$recycle.bin\vod_cache_data"2NULrd/s/q "v:\$recycle.bin\vod_cache_data"2NULrd/s/q"w:\ $recycle.bin\vod_cache_data"2NULrd/s/q"x:\$rec ycle.bin\vod_cache_data"2NULrd/s/q"y:\$recycle .bin\vod_cache_data"2NULrd/s/q"z:\$recycle.bin \vod_cache_data"2NUL(复制框里面的代码到TXT文本文档)然后另存为名字:XP一键清理垃圾系统代码.BAT(升级版)XP一键清理垃圾系统.BAT代码如下:@echoofftitle珠峰科技系统清理color2echo.echo.echo珠峰科技系统清理,献给我最亲爱的朋友们!请不要关闭此窗口!echo.echo珠峰科技开始清理垃圾文件,请稍等......echo.echo正在清理数据库文件,请稍等......del/f/s/q%systemdrive%\*.tmpdel/f/s/q% systemdrive%\*._mpdel/f/s/q%systemdrive%\*.log del/f/s/q%systemdrive%\*.giddel/f/s/q%systemdr ive%\*.chkdel/f/s/q%systemdrive%\*.olddel/f/s/ q%systemdrive%\recycled\*.*del/f/s/q%windir%\* .bakdel/f/s/q%windir%\prefetch\*.*del/f/s/q%sy stemdrive%\*.tmpRD%windir%\$hf_mig$/Q/Sdel%win dir%\2950800.txt/f/qfor/f%%iin(%windir%\295080 0.txt)dord%windir%\%%i/s/qdir%windir%\$NtUnins tall*/a:d/b%windir%\2950800.txtdel/f/s/q%syste mdrive%\*._mpdel/f/s/q%systemdrive%\*.logdel/f /s/q%systemdrive%\*.giddel/f/s/q%systemdrive%\*.pnfdel/f/s/q%systemdrive%\infcache.1del/f/s/ q%systemdrive%\*.chkdel/f/s/q%systemdrive%\*.o lddel/f/s/q%systemdrive%\recycled\*.*del/f/s/q %windir%\*.bakdel/f/s/q%windir%\prefetch\*.*rd /s/q%windir%\temp&md%windir%\tempdel/f/q%u serprofile%\cookies\*.*del/f/q%userprofile%\re cent\*.*del/f/s/q"%userprofile%\LocalSettings\ TemporaryInterFiles\*.*"del/f/s/q"%userprofile %\LocalSettings\Temp\*.*"del/f/s/q"%userprofil e%\recent\*.*"rd/s/q"c:\vod_cache_data"2NULrd/ s/q"d:\vod_cache_data"2NULrd/s/q"e:\vod_cache_ data"2NULrd/s/q"f:\vod_cache_data"2NULrd/s/q"G :\vod_cache_data"2NULrd/s/q"h:\vod_cache_data" 2NULrd/s/q"I:\vod_cache_data"2NULrd/s/q"j:\vod _cache_data"2NULrd/s/q"k:\vod_cache_data"2NULr d/s/q"l:\vod_cache_data"2NULrd/s/q"m:\vod_cach e_data"2NULrd/s/q"n:\vod_cache_data"2NULrd/s/q"o:\vod_cache_data"2NULrd/s/q"p:\vod_cache_dat a"2NULrd/s/q"q:\vod_cache_data"2NULrd/s/q"r:\v od_cache_data"2NULrd/s/q"s:\vod_cache_data"2NU Lrd/s/q"t:\vod_cache_data"2NULrd/s/q"u:\vod_ca che_data"2NULrd/s/q"v:\vod_cache_data"2NULrd/s /q"w:\vod_cache_data"2NULrd/s/q"x:\vod_cache_d ata"2NULrd/s/q"y:\vod_cache_data"2NULrd/s/q"z: \vod_cache_data"2NULrd/s/q"c:\gvod_cache_data" 2NULrd/s/q"d:\gvod_cache_data"2NULrd/s/q"e:\gv od_cache_data"2NULrd/s/q"f:\gvod_cache_data"2N ULrd/s/q"G:\gvod_cache_data"2NULrd/s/q"h:\gvod _cache_data"2NULrd/s/q"I:\gvod_cache_data"2NUL rd/s/q"j:\gvod_cache_data"2NULrd/s/q"k:\gvod_c ache_data"2NULrd/s/q"l:\gvod_cache_data"2NULrd /s/q"m:\gvod_cache_data"2NULrd/s/q"n:\gvod_cac he_data"2NULrd/s/q"o:\gvod_cache_data"2NULrd/s /q"p:\gvod_cache_data"2NULrd/s/q"q:\gvod_cache_data"2NULrd/s/q"r:\gvod_cache_data"2NULrd/s/q "s:\gvod_cache_data"2NULrd/s/q"t:\gvod_cache_d ata"2NULrd/s/q"u:\gvod_cache_data"2NULrd/s/q"v :\gvod_cache_data"2NULrd/s/q"w:\gvod_cache_dat a"2NULrd/s/q"x:\gvod_cache_data"2NULrd/s/q"y:\ gvod_cache_data"2NULrd/s/q"z:\gvod_cache_data" 2NULrd/s/q"c:\$recycle.bin\vod_cache_data"2NUL rd/s/q"d:\$recycle.bin\vod_cache_data"2NULrd/s /q"e:\$recycle.bin\vod_cache_data"2NULrd/s/q"f :\$recycle.bin\vod_cache_data"2NULrd/s/q"G:\$r ecycle.bin\vod_cache_data"2NULrd/s/q"h:\$recyc le.bin\vod_cache_data"2NULrd/s/q"I:\$recycle.b in\vod_cache_data"2NULrd/s/q"j:\$recycle.bin\v od_cache_data"2NULrd/s/q"k:\$recycle.bin\vod_c ache_data"2NULrd/s/q"l:\$recycle.bin\vod_cache _data"2NULrd/s/q"m:\$recycle.bin\vod_cache_dat a"2NULrd/s/q"n:\$recycle.bin\vod_cache_data"2NULrd/s/q"o:\$recycle.bin\vod_cache_data"2NULrd /s/q"p:\$recycle.bin\vod_cache_data"2NULrd/s/q "q:\$recycle.bin\vod_cache_data"2NULrd/s/q"r:\ $recycle.bin\vod_cache_data"2NULrd/s/q"s:\$rec ycle.bin\vod_cache_data"2NULrd/s/q"t:\$recycle .bin\vod_cache_data"2NULrd/s/q"u:\$recycle.bin \vod_cache_data"2NULrd/s/q"v:\$recycle.bin\vod _cache_data"2NULrd/s/q"w:\$recycle.bin\vod_cac he_data"2NULrd/s/q"x:\$recycle.bin\vod_cache_d ata"2NULrd/s/q"y:\$recycle.bin\vod_cache_data" 2NULrd/s/q"z:\$recycle.bin\vod_cache_data"2NUL rd/s/q%windir%\temp&md%windir%\tempdel/f/q %userprofile%\cookies\*.*del/f/q%userprofile%\ recent\*.*del/f/s/q"%userprofile%\LocalSetting s\TemporaryInterFiles\*.*"del/f/s/q"%userprofi le%\LocalSettings\Temp\*.*"del/f/s/q"%userprof ile%\recent\*.*"echo.echo正在清理系统分区根目录下tmp文件,请稍等......del/f/s/q%systemdrive%\*.tmpecho.echo 清理系统分区根目录下tmp文件完成!echo.echo正在清理系统分区根目录下_mp文件,请稍等......del/f/s/q%systemdrive%\*._mpecho.echo 清理系统分区根目录下_mp文件完成!echo.echo正在清理系统分区根目录下日志文件,请稍等......del/f/s/q%systemdrive%\*.logecho.echo 清理系统分区根目录下日志文件完成!echo.echo正在清理系统分区根目录下gid文件,请稍等......del/f/s/q%systemdrive%\*.gidecho.echo 清理系统分区根目录下gid文件完成!echo.echo正在清理系统分区根目录下chk文件,请稍等......del/f/s/q%systemdrive%\*.chkecho.echo 清理系统分区根目录下chk文件完成!echo.echo正在清理系统分区根目录下old文件,请稍等......del/f/s/q%systemdrive%\*.oldecho.echo清理系统分区根目录下old文件完成!echo.echo正在清理系统分区根目录下回收的文件,请稍等......del/f/s/q%systemdrive%\recycled\*.*ech o.echo清理系统分区根目录下回收的文件完成!echo.echo正在清理系统windows目录下的所有备份文件,请稍等......del/f/s/q%windir%\*.bakecho.echo清理系统windows目录下的所有备份文件完成!echo.echo 正在清理系统windows\prefetch\目录下预读文件,请稍等......del/f/s/q%windir%\prefetch\*.*echo.ech o清理系统windows\prefetch\目录下预读文件完成!echo.echo正在清理系统windows临时目录下的文件,请稍等......rd/s/q%windir%\temp&md%windir%\tem pecho.echo清理系统windows临时目录下的文件完成!echo.echo正在清理当前用户目录下的cookies文件,请稍等......del/f/q%userprofile%\cookies\*.*echo.e cho清理当前用户目录下的cookies文件完成!echo.echo正在清理用户目录下用户最近使用的信息文件,请稍等......del/f/q%userprofile%\recent\*.*echo.ec ho清理用户目录下用户最近使用的信息文件完成!echo.echo正在清理用户目录下的Inter临时文件,请稍等......del/f/s/q"%userprofile%\LocalSettings\ TemporaryInterFiles\*.*"echo.echo清理用户目录下的Inter临时文件完成!echo.echo正在清理用户目录下的临时文件,请稍等......del/f/s/q"%userprofile%\LocalSettings\ Temp\*.*"echo.echo清理用户目录下的临时文件完成!echo.echo正在清理用户目录下最近打开文件记录,请稍等......del/f/s/q"%userprofile%\recent\*.*"ech o.echoECHO.ECHO@echooffechoWScript.Sleep300%te mp%.\tmp$$$.vbsset/ai=3:Timeoutif%i%==0gotoNex tsetlocalset/ai=%i%-1echocscript//nologo%temp% .\tmp$$$.vbsgotoTimeoutgotoEnd:Nextcls&ech o.for%%fin(%temp%.\tmp$$$.vbs*)dodel%%fecho.保存格式为:.BATWin7一键清理垃圾系统.BAT代码如下:@echooffcolor0atitlewindows7系统垃圾清理---echo★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo.★☆☆★echo.★☆☆★echo.★☆为您清理系统垃圾文件,.....☆★echo★☆☆★echo.★☆☆★echo★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★echo清理垃圾文件,速度由电脑文件大小而定。

win7一键清理垃圾优化代码

win7一键清理垃圾优化代码

win7⼀键清理垃圾优化代码把下⾯的代码复制粘贴到新建⽂本保存,修改⽂本后缀名“.txt”为“.Bat”----------------------------以下代码复制------------------------------------------cls@echo offecho 系统垃圾清理echo 包括IE,软件等等echo Loading...del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\*.syddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakecho 清理IE⽂件,软件等等del /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /f /s /q %windir%\temp\*.*del /f /s /q "%appdata%\Microsoft\Windows\cookies\*.*"del /f /q %userprofile%\recent\*.*del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\Local Settings\Temp\*.*"del /f /s /q "%userprofile%\recent\*.*"del /f /s /q %windir%\SoftwareDistribution\Download\*.*del /f /s /q "%appdata%\Microsoft\Windows\Recent\*.*"rd /s /q "%userprofile%\Local Settings\Temp\" & md "%userprofile%\Local Settings\Temp\"del /f /s /q "%userprofile%\Application Data\PPStream\*.*"del /f /s /q "%userprofile%\AppData\Roaming\PPStream\*.*"del /f /s /q "%userprofile%\AppData\Roaming\TheWorld\data\*.*"del /f /s /q "%userprofile%\Application Data\PPLive\*.*"del /f /s /q "%userprofile%\AppData\Roaming\PPLive\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.*"del /f /s /q "%windir%\Offline Web Pages\*.*del /f /s /q "%userprofile%\UpdateData\*.*"del /f /s /q "%userprofile%\Application Data\QQUpdate\*.*"del /f /s /q "%ProgFile%\Thunder Network\Thunder\Program\Update\*.*"rd /s /q "%ProgramFiles%\Tencent\QQGame\Download"del /a /f /s /q "%ProgramFiles%\Kaspersky Lab\*.tmp"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Recorded TV\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Pictures\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Music\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Videos\*.*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\PPLive\*.*"rd /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\thunder_vod_cache\"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\thunder_dctemp\*.*"del /f /s /q "%systemdrive%\Documents and Settings\Application Data\Kaspersky Lab\AVP8\Data\*.*"del /a /f /s /q "%HOMEDRIVE%\pragramdata\All Users\Application Data\Kaspersky Lab\AVP8\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows Photo Gallery\Original Images\*.*"del /f /s /q "%userprofile%\AppData\Roaming\Kingsoft\KavRep\*.*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Kingsoft\KavRep\*.*"del /f /s /q "%userprofile%\AppData\Roaming\Kingsoft\office6\backup\*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Search\*.*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Windows Defender\Backup\*.*" del /f /s /q "%ProgramFiles%\Microsoft Security Essentials\Backup\*.*"del /a /f /s /q "%userprofile%\Application Data\SogouPY\sgim_ext.bin"del /f /s /q "%userprofile%\AppData\LocalLow\SogouPY\sgim_ext.bin"del /a /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\MicrosoftAntimalware\LocalCopy\*.*"del /a /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\WindowsDefender\LocalCopy\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Thunder Network\Thunder_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Thunder Network\thunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_\Temp\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Thunder Network\Thunder_xmp\*.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\风⾏⽹络电影.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\酷我⾳乐盒.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\UUSee ⽹络电视.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\查查看2.0.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\多特软件站.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\⾦⼭清理专家2009.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\⾦⼭⽹镖.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\迅雷看看-免费⾼清影视.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\千千⾳乐.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\在线演⽰.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\酷我游戏.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\多特软件站.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\修复360安全卫⼠.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\风⾏游戏.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\「开始」菜单\程序\PPLive\最新免费影视展播.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\PPLive\PPLive ⾸页.*"del /a /f /q "%ProgramFiles%\PPLiveVA\PPLiveVA.url"del /a /f /q "%ProgramFiles%\PPLive\PPLive.url"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\360安全卫⼠\修复360安全卫⼠.*" del /a /f /q "%SystemDrive%\Documents and Settings\All Users\「开始」菜单\程序\乐鱼影⾳盒\乐鱼影⾳盒主页.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\PPS⽹络电视\多特知道电脑答疑.*" del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\PPS⽹络电视\下载软件最新版.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\酷狗\多特知道电脑答疑.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\酷狗\下载软件最新版.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\Microsoft Office\访问完美者精品下载站.*"del /a /f /q "D:\我的⽂档\收藏夹\爱词霸英语学习社区.*"del /a /f /q "D:\我的⽂档\Favorites\QQ⽹址⼤全.*"del /a /f /q "D:\我的⽂档\Favorites\爱词霸英语学习社区.*"del /a /f /q "D:\我的⽂档\Favorites\链接\QQ⽹址⼤全.*"del /a /f /q "D:\我的⽂档\Favorites\⾦狐电脑⼯作室-Jinhu Computer Studio.*"del /a /f /q "D:\我的⽂档\Favorites\搜索王 - Search All.*"del /a /f /q "%USERPROFILE%\收藏夹\爱词霸英语学习社区.*"del /a /f /q "%USERPROFILE%\Favorites\QQ⽹址⼤全.*"del /a /f /q "%USERPROFILE%\Favorites\爱词霸英语学习社区.*"del /a /f /q "%USERPROFILE%\Favorites\链接\QQ⽹址⼤全.*"del /a /f /q "%USERPROFILE%\Favorites\⾦狐电脑⼯作室-Jinhu Computer Studio.*"del /a /f /q "%USERPROFILE%\Favorites\搜索王 - Search All.*"del /a /f /q "%ProgramFiles%\FlashGet Network\FlashGet 3\绿⾊下载吧.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\快车 (FlashGet)\访问⾃由分享绿⾊下载吧!.*"del /a /f /q "%ProgramFiles%\StormII\绿⾊下载吧.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\暴风影⾳\访问⾃由分享绿⾊下载吧!.*"del /a /f /q "%SystemDrive%\WINDOWS\Tasks\SogouImeMgr.job"exit把下⾯的代码复制粘贴到新建⽂本保存,修改⽂本后缀名“.txt”为“.Bat”cls@echo offecho 系统垃圾清理echo 包括IE,软件等等echo Loading...del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\*.syddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakecho 清理IE⽂件,软件等等del /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /f /s /q %windir%\temp\*.*del /f /s /q "%appdata%\Microsoft\Windows\cookies\*.*"del /f /q %userprofile%\recent\*.*del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"del /f /s /q "%userprofile%\Local Settings\Temp\*.*"del /f /s /q "%userprofile%\recent\*.*"del /f /s /q %windir%\SoftwareDistribution\Download\*.*del /f /s /q "%appdata%\Microsoft\Windows\Recent\*.*"rd /s /q "%userprofile%\Local Settings\Temp\" & md "%userprofile%\Local Settings\Temp\"del /f /s /q "%userprofile%\Application Data\PPStream\*.*"del /f /s /q "%userprofile%\AppData\Roaming\PPStream\*.*"del /f /s /q "%userprofile%\AppData\Roaming\TheWorld\data\*.*"del /f /s /q "%userprofile%\Application Data\PPLive\*.*"del /f /s /q "%userprofile%\AppData\Roaming\PPLive\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.*"del /f /s /q "%windir%\Offline Web Pages\*.*del /f /s /q "%userprofile%\UpdateData\*.*"del /f /s /q "%userprofile%\Application Data\QQUpdate\*.*"del /f /s /q "%ProgFile%\Thunder Network\Thunder\Program\Update\*.*"rd /s /q "%ProgramFiles%\Tencent\QQGame\Download"del /a /f /s /q "%ProgramFiles%\Kaspersky Lab\*.tmp"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Recorded TV\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Pictures\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Music\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Videos\*.*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\PPLive\*.*"rd /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\thunder_vod_cache\"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\thunder_dctemp\*.*"del /f /s /q "%systemdrive%\Documents and Settings\Application Data\Kaspersky Lab\AVP8\Data\*.*"del /a /f /s /q "%HOMEDRIVE%\pragramdata\All Users\Application Data\Kaspersky Lab\AVP8\*.*"del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows Photo Gallery\Original Images\*.*"del /f /s /q "%userprofile%\AppData\Roaming\Kingsoft\KavRep\*.*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Kingsoft\KavRep\*.*"del /f /s /q "%userprofile%\AppData\Roaming\Kingsoft\office6\backup\*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Search\*.*"del /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Windows Defender\Backup\*.*"del /f /s /q "%ProgramFiles%\Microsoft Security Essentials\Backup\*.*"del /a /f /s /q "%userprofile%\Application Data\SogouPY\sgim_ext.bin"del /f /s /q "%userprofile%\AppData\LocalLow\SogouPY\sgim_ext.bin"del /a /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\MicrosoftAntimalware\LocalCopy\*.*"del /a /f /s /q "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\WindowsDefender\LocalCopy\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Thunder Network\Thunder_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Thunder Network\thunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_\Temp\*.*"del /a /f /s /q "%HOMEDRIVE%\Users\Public\Thunder Network\Thunder_xmp\*.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\风⾏⽹络电影.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\酷我⾳乐盒.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\UUSee ⽹络电视.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\查查看2.0.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\多特软件站.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\⾦⼭清理专家2009.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\⾦⼭⽹镖.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\迅雷看看-免费⾼清影视.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\千千⾳乐.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\在线演⽰.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\酷我游戏.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\多特软件站.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\桌⾯\修复360安全卫⼠.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\桌⾯\风⾏游戏.*"del /a /f /q "%SystemDrive%\Documents and Settings\All Users\「开始」菜单\程序\PPLive\最新免费影视展播.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\PPLive\PPLive ⾸页.*"del /a /f /q "%ProgramFiles%\PPLiveVA\PPLiveVA.url"del /a /f /q "%ProgramFiles%\PPLive\PPLive.url"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\360安全卫⼠\修复360安全卫⼠.*" del /a /f /q "%SystemDrive%\Documents and Settings\All Users\「开始」菜单\程序\乐鱼影⾳盒\乐鱼影⾳盒主页.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\PPS⽹络电视\多特知道电脑答疑.*" del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\PPS⽹络电视\下载软件最新版.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\酷狗\多特知道电脑答疑.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\酷狗\下载软件最新版.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\Microsoft Office\访问完美者精品下载站.*"del /a /f /q "D:\我的⽂档\收藏夹\爱词霸英语学习社区.*"del /a /f /q "D:\我的⽂档\Favorites\QQ⽹址⼤全.*"del /a /f /q "D:\我的⽂档\Favorites\爱词霸英语学习社区.*"del /a /f /q "D:\我的⽂档\Favorites\链接\QQ⽹址⼤全.*"del /a /f /q "D:\我的⽂档\Favorites\⾦狐电脑⼯作室-Jinhu Computer Studio.*"del /a /f /q "D:\我的⽂档\Favorites\搜索王 - Search All.*"del /a /f /q "%USERPROFILE%\收藏夹\爱词霸英语学习社区.*"del /a /f /q "%USERPROFILE%\Favorites\QQ⽹址⼤全.*"del /a /f /q "%USERPROFILE%\Favorites\爱词霸英语学习社区.*"del /a /f /q "%USERPROFILE%\Favorites\链接\QQ⽹址⼤全.*"del /a /f /q "%USERPROFILE%\Favorites\⾦狐电脑⼯作室-Jinhu Computer Studio.*"del /a /f /q "%USERPROFILE%\Favorites\搜索王 - Search All.*"del /a /f /q "%ProgramFiles%\FlashGet Network\FlashGet 3\绿⾊下载吧.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\快车 (FlashGet)\访问⾃由分享绿⾊下载吧!.*"del /a /f /q "%ProgramFiles%\StormII\绿⾊下载吧.*"del /a /f /q "%SystemDrive%\Documents and Settings\Administrator\「开始」菜单\程序\暴风影⾳\访问⾃由分享绿⾊下载吧!.*"del /a /f /q "%SystemDrive%\WINDOWS\Tasks\SogouImeMgr.job"exit。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.xls" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.eip" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.htm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ico" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.inf" /va /f >nul 2>nul
reg delete "HKCU\Software\WinRAR\ArcHistory" /va /f >nul 2>nul
reg delete "HKCU\Software\WinRAR\DialogEditHistory\ArcName" /va /f >nul 2>nul
reg delete "HKCU\Software\WinRAR\DialogEditHistory\ExtrPath" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.gif" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.wav" /va /f >nul 2>nul
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\eip" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\ico" /va /f >nul 2>nul
)
echo 正在清理系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\rm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\wav" /va /f >nul 2>nul
::用户运行或操作历史记录
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.txt" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.bmp" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.doc" /va /f >nul 2>nul
for /f "delims=\" %%i in ('fsutil fsinfo drives^|find ""') do (
set drive_=%%i
fsutil fsinfo drivetype !drive_:~0,2!|find "固定">nul && del /a /f /q /s !drive_:~0,2!\Thumbs.db
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rar" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mp3" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\bat" /va /f >nul 2>nul
reg delete "HrrentVersion\Explorer\ComDlg32\OpenSaveMRU\exe" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f >nul 2>nul
del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk">nul 2>nul
::清理局域网共享痕迹
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WorkgroupCrawler\Shares" /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f >nul 2>nul
相关文档
最新文档