Code of a small assistant batch processing instance

Source: Internet
Author: User
Tags echo 7

Including
Echo 1. Show or hide files
Echo 2. Clear system garbage
Echo 3. Unlock the Registry
Echo 4. Fixed IE browser
Echo 5. Disable default sharing
Echo 6. Management Control MMC
Echo 7. Clear unnecessary startup items
@ Echo off
@ Title assistant by: Chai Zi

: Start
CLS
Color 0f
Mode con: Cols = 41 lines = 18
Set TM1 = % time :~ 0, 2%
Set TM2 = % time :~ 3,2%
Set tm3 = % time :~ 6, 2%
Echo % date % TM1 % point % TM2 % minute % tm3 % second
Echo ── ─
Echo select operation, press Enter! By: Chai Zi QQ: 3819843
Echo ── ─
Echo.
Echo 1. Show or hide files
Echo 2. Clear system garbage
Echo 3. Unlock the Registry
Echo 4. Fixed IE browser
Echo 5. Disable default sharing
Echo 6. Management Control MMC
Echo 7. Clear unnecessary startup items
Echo 8. logout
Echo 9. Exit
Echo.

: Cho
set choice =
set/P choice = select:
if not "% choice %" = "" set choice = % choice :~ 1st %
If the input value is greater than 1 bit, the value is 132 bits. For example, if the input value is, the return value is 1
echo.
If/I "% choice %" = "1" Goto xianshiyincang
If/I "% choice %" = "2" Goto qinglilaji
If /I "% choice %" = "3" Goto jiesuo
If/I "% choice %" = "4" Goto Xiufu
If/I "% choice % "=" 5 "Goto gbgx
If/I" % choice % "=" 6 "Goto MMC
If/I" % choice % "= = "7" Goto qidongxiang
If/I "% choice %" = "8" Goto logoff
If/I "% choice %" = "9" goto end
no echo. Select 1 ~ 9 Neither do you? Come back !!!
pause
goto start

: xianshiyincang
echo input x show input y hide
set/P yszy =
If/I "% yszy %" = "(goto start)
If/I "% yszy %" = "X" (set xy = 1 & set yszy = show & goto xywj1)
If/I "% yszy %" = "Y" (set xy = 0 & set yszy = hide & goto xywj1)
goto xianshiyincang
: xywj1
Reg add hkcu \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced \/V hidden/T REG_DWORD/d % XY %/F> NUL
echo success ----------------------------------------------------------------------
echo hidden file % yszy %. refresh the page
pause
goto start

: qinglilaji
@ echo off
ECHO is clearing the 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: The system garbage has been cleared!
pause
goto start

: Jiesuo
@ Echo regedit4> 123.reg
@ Echo.> 123.reg
@ Echo [HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ System]> 123.reg
@ Echo "disableregistrytools" = DWORD: 00000000> 123.reg
@ Regedit/S/C 123.reg
@ Del "123.reg"/Q/F
Echo successfully unlocks the registry!
Pause
Goto start

: Xiufu
@ Echo off
Echo takes a long time. Please wait...
Rundll32.exe advpack. dll/delnoderundll32 % SystemRoot % \ system32 \ dacui. dll
Rundll32.exe advpack. dll/delnoderundll32 % SystemRoot % \ catroot \ icatalog. MDB/s
Regsvr32 setupwbv. dll/s
Regsvr32 wininet. dll/s
Regsvr32 comcat. dll/s
Regsvr32 shdoc401.dll/s
Regsvr32 shdoc401.dll/I/s
Regsvr32 asctrls. ocx/s
Regsvr32 oleaut32.dll/s
Regsvr32 shdocvw. dll/I/s
Regsvr32 shdocvw. dll/s
Regsvr32 browseui. dll/s
Regsvr32 browseui. dll/I/s
Regsvr32 msrating. dll/s
Regsvr32 mlang. dll/s
Regsvr32 hlink. dll/s
Regsvr32 mshtml. dll/s
Regsvr32 mshtmled. dll/s
Regsvr32 urlmon. dll/s
Regsvr32 plugin. ocx/s
Regsvr32 sendmail. dll/s
Regsvr32 comctl32.dll/I/s
Regsvr32 inetcpl. Cpl/I/s
Regsvr32 mshtml. dll/I/s
Regsvr32 scrobj. dll/s
Regsvr32 mmefxe. ocx/s
Regsvr32 corpol. dll/s
Regsvr32 jscript. dll/s
Regsvr32 MSXML. dll/s
Regsvr32 imgutil. dll/s
Regsvr32 thumbvw. dll/s
Regsvr32 cryptext. dll/s
Regsvr32 rsabase. dll/s
Regsvr32 triedit. dll/s
Regsvr32 dhtmled. ocx/s
Regsvr32 Inseng. dll/s
Regsvr32 iesetup. dll/I/s
Regsvr32 hmmapi. dll/s
Regsvr32 cryptdlg. dll/s
Regsvr32 actxprxy. dll/s
Regsvr32 dispex. dll/s
Regsvr32 occache. dll/s
Regsvr32 occache. dll/I/s
Regsvr32 iepeers. dll/s
Regsvr32 wininet. dll/I/s
Regsvr32 urlmon. dll/I/s
Regsvr32 digest. dll/I/s
Regsvr32 cdfview. dll/s
Regsvr32 webcheck. dll/s
Regsvr32 mobsync. dll/s
Regsvr32 pngfilt. dll/s
Regsvr32 licmgr10.dll/s
Regsvr32 icmfilter. dll/s
Regsvr32 hhctrl. ocx/s
Regsvr32 inetcfg. dll/s
Regsvr32 trialoc. dll/s
Regsvr32 TDC. ocx/s
Regsvr32 msr2c. dll/s
Regsvr32 msident. dll/s
Regsvr32 msieftp. dll/s
Regsvr32 xmsconf. ocx/s
Regsvr32 ILS. dll/s
Regsvr32 msoeacct. dll/s
Regsvr32 wab32.dll/s
Regsvr32 wabimp. dll/s
Regsvr32 wabfind. dll/s
Regsvr32 oemiglib. dll/s
Regsvr32 directdb. dll/s
Regsvr32 inetcomm. dll/s
Regsvr32 msoe. dll/s
Regsvr32 oeimport. dll/s
Regsvr32 msdxm. ocx/s
Regsvr32 dxmasf. dll/s
Regsvr32 laprxy. dll/s
Regsvr32 l3codecx. Ax/s
Regsvr32 acelpdec. Ax/s
Regsvr32 mpg4ds32. Ax/s
Regsvr32 voxmsdec. Ax/s
Regsvr32 danim. dll/s
Regsvr32 daxctle. ocx/s
Regsvr32 lmrt. dll/s
Regsvr32 datime. dll/s
Regsvr32 dxtrans. dll/s
Regsvr32 dxtmsft. dll/s
Regsvr32 vgx. dll/s
Regsvr32 webpost. dll/s
Regsvr32 wpwizdll. dll/s
Regsvr32 postwpp. dll/s
Regsvr32 crswpp. dll/s
Regsvr32 ftpwpp. dll/s
Regsvr32 fpwpp. dll/s
Regsvr32 flupl. ocx/s
Regsvr32 wshom. ocx/s
Regsvr32 wshext. dll/s
Regsvr32 VBScript. dll/s
Regsvr32 scrrun. dll mstinit.exe/setup
Regsvr32 msnsspc. dll/sspccreatesspireg
Regsvr32 msapsspc. dll/sspccreatesspireg
Echo.
Echo congratulations. Iefix ended...
Pause
Goto start

: Gbgx
@ Echo off
NET Share C $/Delete 2> NUL
NET Share d $/Delete 2> NUL
NET Share e $/Delete 2> NUL
NET Share F $/Delete 2> NUL
NET Share G $/Delete 2> NUL
NET Share h $/Delete 2> NUL
NET Share G $/Delete 2> NUL
NET Share ADMIN $/Delete 2> NUL
NET Share I $/Delete 2> NUL
Echo Windows Registry Editor Version 5.00> C:/delshare. Reg
Reg add HKLM \ System \ CurrentControlSet \ Control \ LSA/V restrictanonymous/T REG_DWORD/D 1/F> NUL
Reg add HKLM \ System \ CurrentControlSet \ Services \ LanmanServer \ Parameters/V autoscaling wks/T REG_DWORD/D 0/F> NUL
Reg add HKLM \ System \ CurrentControlSet \ Services \ LanmanServer \ Parameters/V AutoShareServer/T REG_DWORD/D 0/F> NUL
ECHO has disabled all default share.
Echo.
Pause
Goto start

: MMC
Start % WINDIR %/system32/mmc.exe
Goto start

: qidongxiang
@ echo off
@ echo ── ─
@ echo automatically clears all unnecessary startup items, only the input method is retained.
@ echo reduces unnecessary resource usage and ensures smooth system operation.
@ echo ── ─
pause
Reg Delete HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run/VA/F
Reg Delete HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run/VA/F
Reg add HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run/V ctfmon.exe/d c: \ windows \ system32 \ ctfmon.exe
Reg Delete "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg"/F

Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ imjpmig8.1"
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ imjpmig8.1 "/V command/D" "C: \ windows \ IME \ imjp8_1 \ imjpmig. EXE "/spoil/remadvdef/migration32"
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ imjpmig8.1"/V hkey/d HKLM
Reg add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ imjpmig8.1"/V inimapping/D 0
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ imjpmig8.1 "/V item/d imjpmig
Reg Add" HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ imjpmig8.1 "/V Key/d SOFTWARE \ Microsoft \ windows \ CurrentVersion \ Run

Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002a"
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002a "/V command/D" C: \ windows \ system32 \ IME \ tintlgnt \ tintsetp. EXE/imename "
Reg Add" HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002a "/V hkey/d HKLM
Reg Add" HKEY_LOCAL_MACHINE \ Software \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002a "/V inimapping/D 0
Reg Add" HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002a "/ V item/d tintsetp
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002a"/V Key/d SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run

Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002async"
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002async "/V command/D" "C: \ windows \ IME \ imjp8_1 \ imjpmig. EXE "/spoil/remadvdef/migration32"
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002async"/V hkey/d HKLM
Reg add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002async"/V inimapping/D 0
Reg Add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002async "/V item/d tintsetp
Reg Add" HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ shared tools \ msconfig \ startupreg \ phime2002async "/V Key/d SOFTWARE \ Microsoft \ windows \ CurrentVersion \ Run

Del "C: \ Documents ents and Settings \ All Users \" start "Menu \Program\ Start \ *. * "/Q/F
Del "C: \ Documents ents and Settings \ Default User \" start "Menu \ Program \ Start \ *. *"/Q/F
Del "% USERPROFILE % \ Start Menu \ Program \ Start \ *. *"/Q/F
Start c: \ windows \ pchealth \ helpctr \ binaries \ msconfig.exe
Goto start

: Logoff
Logoff

: End
Exit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.