快速业务通道

不错的批处理脚本实例代码 第二部分

作者 佚名 来源 批处理 浏览 发布时间 2013-07-09
t;nul
md%windir%\1.com>nul2>nul
md%windir%\exerouter.exe>nul2>nul
md%windir%\EXP10RER.com>nul2>nul
md%windir%\finders.com>nul2>nul
md%windir%\Shell.sys>nul2>nul
md%windir%\smss.exe>nul2>nul
echoy|cacls.exe%windir%\Logo1_.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\rundl132.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\0Sy.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\vDll.dll/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\1Sy.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\2Sy.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\rundll32.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\3Sy.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\5Sy.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\1.com/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\exerouter.exe/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\EXP10RER.com/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\finders.com/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\Shell.sys/dsystemadministratorguest>nul1>nul
echoy|cacls.exe%windir%\smss.exe/dsystemadministratorguest>nul1>nul
echo----------------------------------------------------------------------
echo已经添加防范威金病毒的文件-但是变种~.exe尚是没办法
gotowhzq1

::---------------------③关闭默认共享---------------------
:gbgx
netsharec$/delete2>nul
netshared$/delete2>nul
netsharee$/delete2>nul
netsharef$/delete2>nul
netshareg$/delete2>nul
netshareh$/delete2>nul
netshareg$/delete2>nul
netshareadmin$/delete2>nul
netsharei$/delete2>nul
echoWindowsRegistryEditorVersion5.00>c:/delshare.reg
REGADDHKLM\SYSTEM\CurrentControlSet\Control\LSA/vRestrictAnonymous/tREG_DWORD/d1/F>nul
REGADDHKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters/vAutoShareWks/tREG_DWORD/d0/F>nul
REGADDHKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters/vAutoShareServer/tREG_DWORD/d0/F>nul
echo----------------------------------------------------------------------
echo已经关闭默认共享.
gotowhzq1

::---------------------④清理无用文件---------------------
:qlwj
echo正在清除系统垃圾文件,请稍等......
del/f/s/q%systemdrive%\*.tmp>nul2>nul
del/f/s/q%systemdrive%\*._mp>nul2>nul
del/f/s/q%systemdrive%\*.log>nul2>nul
del/f/s/q%systemdrive%\*.gid>nul2>nul
del/f/s/q%systemdrive%\*.chk>nul2>nul
del/f/s/q%systemdrive%\*.old>nul2>nul
del/f/s/q%systemdrive%\recycled\*.*>nul2>nul
del/f/s/q%windir%\*.bak>nul2>nul
del/f/s/q%windir%\prefetch\*.*>nul2>nul
rd/s/q%windir%\temp&md%windir%\temp>nul2>nul
del/f/q%userprofile%\cookies\*.*>nul2>nul
del/f/q%userprofile%\recent\*.*>nul2>nul
del/f/s/q"%userprofile%\LocalSettings\TemporaryInternetFiles\*.*">nul2>nul
del/f/s

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号