自己设计修改一些常用的bat文件

清除所有盘垃圾(以前的只是系统盘,我改了多几个盘符,能清除到到G盘)【修改版】 ­

 

要轻松流畅上网你是否注意到你的电脑系统磁盘的可用空间正在一天天在减少呢?是不是像老去的猴王一样动作一天比一天迟缓呢? ­

没错!在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp、*._mp)日志文件(*.log)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件。特别是如果一段时间不清理IE的临时文件夹 “Temporary Internet Files”,其中的缓存文件有时会占用上百MB的磁盘空间。这些LJ文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行慢如蜗牛。这点相信你肯定忍受不了吧!所以应及时清理系统的LJ文件的淤塞,保持系统的“苗条”身材,轻松流畅上网!朋友来吧,现在就让我们一起来快速清除系统垃圾吧!!下面是步骤很简单就两步! ­

在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去(红色部分),点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清理系统垃圾文件.bat”,就完成了。记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了! ­

双击它就能很快地清理垃圾文件,大约一分钟不到。

======就是下面的文字(这行不用复制)============================= ­

@echo off ­

@ ECHO. ­

@ ECHO. ­

@ ECHO.                              说    明 ­

@ ECHO ----------------------------------------------------------------------- ­

@ ECHO 这是网上流传的批处理。它会帮您删除回收站、临时目录、最近打开过的文档痕迹 ­

@ ECHO 等。对系统运行稍有帮助。但不能根治速度慢的问题。电脑速度慢通常是因为太多 ­

@ ECHO 无用的运算占据了CPU和内存资源所致,非删除一些文件就能解决。建议装好系统后, ­

@ ECHO 及时做Ghost备份。以后如果觉得运行不畅了,就恢复系统,这是最彻底的办法。 ­

@ ECHO -----------------------------by:暗月梦魂-------------------------------   ­

@ ECHO. ­

echo 正在清理系统垃圾文件,请稍等...... ­

del /f /s /q c:\*.tmp ­

del /f /s /q c:\*._mp ­

del /f /s /q c:\*.log ­

del /f /s /q c:\*.gid ­

del /f /s /q c:\*.chk ­

del /f /s /q c:\*.old ­

del /f /s /q c:\recycled\*.* ­

del /f /s /q d:\*.tmp ­

del /f /s /q d:\*._mp ­

del /f /s /q d:\*.log ­

del /f /s /q d:\*.gid ­

del /f /s /q d:\*.chk ­

del /f /s /q d:\*.old ­

del /f /s /q d:\recycled\*.* ­

del /f /s /q e:\*.tmp ­

del /f /s /q e:\*._mp ­

del /f /s /q e:\*.log ­

del /f /s /q e:\*.gid ­

del /f /s /q e:\*.chk ­

del /f /s /q e:\*.old ­

del /f /s /q e:\recycled\*.* ­

del /f /s /q f:\*.tmp ­

del /f /s /q f:\*._mp ­

del /f /s /q f:\*.log ­

del /f /s /q f:\*.gid ­

del /f /s /q f:\*.chk ­

del /f /s /q f:\*.old ­

del /f /s /q f:\recycled\*.* ­

del /f /s /q g:\*.tmp ­

del /f /s /q g:\*._mp ­

del /f /s /q g:\*.log ­

del /f /s /q g:\*.gid ­

del /f /s /q g:\*.chk ­

del /f /s /q g:\*.old ­

del /f /s /q g:\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 清理系统垃圾完成! ­

echo. & pause ­

 

=====到这里为止(这行不用复制)============================================== ­

以后只要双击运行该文件,当屏幕提示“清理系统垃圾完成!就还你一个“苗条”的系统了!!到时候再看看你的电脑,是不是急速如飞呢?可别忘了回帖喔! ­

注:这招比那些所谓的优化大师好用!最重要的是无论在公司默认的系统环境还是在自己家中的电脑都不会破坏系统文件 ­

做人要厚道,成功后别忘了顶一下!!!好让让更多的人知道,忘了顶的人马上死机…哈哈­

 

结束指定的三个进程的bat(这个用得着)

@echo off 
@ ECHO. 
@ ECHO. 
@ ECHO.                         说    明 
@ ECHO ----------------------------------------------------------------------- 
@ ECHO ----------------by:暗月梦魂--- QQ:86726535----------------------------  
@ ECHO. 
title 结束3各重要进程
echo 结束中.......
ntsd -c q -pn smss.exe
ntsd -c q -pn winlogon.exe
ntsd -c q -pn rsclient.exe
echo 结束成功!
pause
exit

 

结束指定进程的bat,复制红色部分,另存为结束进程.bat

@echo off
title 结束进程批处理
echo 要结束那个进程名称,不包含后缀名
set /p input=
ntsd -c q -pn %input%.exe
echo 结束!
pause
exit

xp服务之最精简模式

@echo  xp服务之最精简模式  by 暗月梦魂
@pause 
sc config   Alerter start= DISABLED 
sc config   ALG start= DEMAND 
sc config   AppMgmt start= DEMAND 
sc config   AudioSrv start= AUTO 
sc config   BITS start= DISABLED 
sc config   Browser start= DEMAND 
sc config   CiSvc start= DISABLED 
sc config   ClipSrv start= DISABLED 
sc config   COMSysApp start= DEMAND 
sc config   CryptSvc start= AUTO 
sc config   DcomLaunch start= AUTO 
sc config   Dhcp start= AUTO 
sc config   dmadmin start= DEMAND 
sc config   dmserver start= DEMAND 
sc config   Dnscache start= AUTO 
sc config   ERSvc start= DISABLED 
sc config   Eventlog start= AUTO 
sc config   EventSystem start= DEMAND 
sc config   FastUserSwitchingCompatibility start= DEMAND 
sc config   helpsvc start= DISABLED 
sc config   HidServ start= DISABLED 
sc config   HTTPFilter start= DEMAND 
sc config   ImapiService start= DEMAND 
sc config   lanmanserver start= DEMAND 
sc config   lanmanworkstation start= AUTO 
sc config   LmHosts start= DEMAND 
sc config   Messenger start= DISABLED 
sc config   mnmsrvc start= DEMAND 
sc config   MSDTC start= DEMAND 
sc config   MSIServer start= DEMAND 
sc config   NetDDE start= DISABLED 
sc config   NetDDEdsdm start= DISABLED 
sc config   Netlogon start= DEMAND 
sc config   Netman start= DEMAND 
sc config   Nla start= DEMAND 
sc config   NtLmSsp start= DEMAND 
sc config   NtmsSvc start= DEMAND 
sc config   PlugPlay start= AUTO 
sc config   PolicyAgent start= DEMAND 
sc config   ProtectedStorage start= AUTO 
sc config   RasAuto start= DEMAND 
sc config   RasMan start= DEMAND 
sc config   RDSessMgr start= DEMAND 
sc config   RemoteAccess start= DISABLED 
sc config   RemoteRegistry start= DISABLED 
sc config   RpcLocator start= DEMAND 
sc config   RpcSs start= AUTO 
sc config   RSVP start= DEMAND 
sc config   SamSs start= AUTO 
sc config   SCardSvr start= DEMAND 
sc config   Schedule start= AUTO 
sc config   seclogon start= DEMAND 
sc config   SENS start= AUTO 
sc config   SharedAccess start= DEMAND 
sc config   ShellHWDetection start= AUTO 
sc config   Spooler start= DEMAND 
sc config   srservice start= DISABLED 
sc config   SSDPSRV start= DISABLED 
sc config   stisvc start= DEMAND 
sc config   SwPrv start= DEMAND 
sc config   SysmonLog start= DEMAND 
sc config   TapiSrv start= DEMAND 
sc config   TermService start= DISABLED 
sc config   Themes start= DEMAND 
sc config   TlntSvr start= DISABLED 
sc config   TrkWks start= DEMAND 
sc config   upnphost start= DEMAND 
sc config   UPS start= DEMAND 
sc config   VSS start= DEMAND 
sc config   W32Time start= DEMAND 
sc config   WebClient start= DEMAND 
sc config   winmgmt start= AUTO 
sc config   WmdmPmSN start= DEMAND 
sc config   Wmi start= DEMAND 
sc config   WmiApSrv start= DEMAND 
sc config   wscsvc start= DEMAND 
sc config   wuauserv start= DISABLED 
sc config   WZCSVC start= DEMAND 
sc config   xmlprov start= DEMAND 
@pause

xp服务之笔记本模式

@echo  xp服务之笔记本模式  by 暗月梦魂
@pause 
sc config   Alerter start= DISABLED 
sc config   ALG start= DEMAND 
sc config   AppMgmt start= DEMAND 
sc config   AudioSrv start= AUTO 
sc config   BITS start= DEMAND 
sc config   Browser start= AUTO 
sc config   CiSvc start= DISABLED 
sc config   ClipSrv start= DISABLED 
sc config   COMSysApp start= DEMAND 
sc config   CryptSvc start= AUTO 
sc config   DcomLaunch start= AUTO 
sc config   Dhcp start= AUTO 
sc config   dmadmin start= DEMAND 
sc config   dmserver start= DEMAND 
sc config   Dnscache start= AUTO 
sc config   ERSvc start= DISABLED 
sc config   Eventlog start= AUTO 
sc config   EventSystem start= DEMAND 
sc config   FastUserSwitchingCompatibility start= DEMAND 
sc config   helpsvc start= DISABLED 
sc config   HidServ start= DISABLED 
sc config   HTTPFilter start= DEMAND 
sc config   ImapiService start= DEMAND 
sc config   lanmanserver start= AUTO 
sc config   lanmanworkstation start= AUTO 
sc config   LmHosts start= DEMAND 
sc config   Messenger start= DISABLED 
sc config   mnmsrvc start= DEMAND 
sc config   MSDTC start= DEMAND 
sc config   MSIServer start= DEMAND 
sc config   NetDDE start= DISABLED 
sc config   NetDDEdsdm start= DISABLED 
sc config   Netlogon start= DEMAND 
sc config   Netman start= DEMAND 
sc config   Nla start= AUTO 
sc config   NtLmSsp start= DEMAND 
sc config   NtmsSvc start= DEMAND 
sc config   PlugPlay start= AUTO 
sc config   PolicyAgent start= AUTO 
sc config   ProtectedStorage start= AUTO 
sc config   RasAuto start= DEMAND 
sc config   RasMan start= DEMAND 
sc config   RDSessMgr start= DEMAND 
sc config   RemoteAccess start= DISABLED 
sc config   RemoteRegistry start= DISABLED 
sc config   RpcLocator start= DEMAND 
sc config   RpcSs start= AUTO 
sc config   RSVP start= DEMAND 
sc config   SamSs start= AUTO 
sc config   SCardSvr start= DEMAND 
sc config   Schedule start= AUTO 
sc config   seclogon start= DEMAND 
sc config   SENS start= AUTO 
sc config   SharedAccess start= AUTO 
sc config   ShellHWDetection start= AUTO 
sc config   Spooler start= AUTO 
sc config   srservice start= DISABLED 
sc config   SSDPSRV start= DEMAND 
sc config   stisvc start= DEMAND 
sc config   SwPrv start= DEMAND 
sc config   SysmonLog start= DEMAND 
sc config   TapiSrv start= DEMAND 
sc config   TermService start= DEMAND 
sc config   Themes start= AUTO 
sc config   TlntSvr start= DISABLED 
sc config   TrkWks start= DEMAND 
sc config   upnphost start= DEMAND 
sc config   UPS start= DEMAND 
sc config   VSS start= DEMAND 
sc config   W32Time start= DEMAND 
sc config   WebClient start= DEMAND 
sc config   winmgmt start= AUTO 
sc config   WmdmPmSN start= DEMAND 
sc config   Wmi start= DEMAND 
sc config   WmiApSrv start= DEMAND 
sc config   wscsvc start= DEMAND 
sc config   wuauserv start= AUTO 
sc config   WZCSVC start= AUTO 
sc config   xmlprov start= DEMAND 
@pause

xp服务之默认服务模式

@echo  xp服务之默认服务模式  by 暗月梦魂
@pause 
sc config   Alerter start= DISABLED 
sc config   ALG start= DEMAND 
sc config   AppMgmt start= DEMAND 
sc config   AudioSrv start= AUTO 
sc config   BITS start= DEMAND 
sc config   Browser start= AUTO 
sc config   CiSvc start= DEMAND 
sc config   ClipSrv start= DISABLED 
sc config   COMSysApp start= DEMAND 
sc config   CryptSvc start= AUTO 
sc config   DcomLaunch start= AUTO 
sc config   Dhcp start= AUTO 
sc config   dmadmin start= DEMAND 
sc config   dmserver start= AUTO 
sc config   Dnscache start= AUTO 
sc config   ERSvc start= AUTO 
sc config   Eventlog start= AUTO 
sc config   EventSystem start= DEMAND 
sc config   FastUserSwitchingCompatibility start= DEMAND 
sc config   helpsvc start= AUTO 
sc config   HidServ start= DISABLED 
sc config   HTTPFilter start= DEMAND 
sc config   ImapiService start= DEMAND 
sc config   lanmanserver start= AUTO 
sc config   lanmanworkstation start= AUTO 
sc config   LmHosts start= AUTO 
sc config   Messenger start= DISABLED 
sc config   mnmsrvc start= DEMAND 
sc config   MSDTC start= DEMAND 
sc config   MSIServer start= DEMAND 
sc config   NetDDE start= DISABLED 
sc config   NetDDEdsdm start= DISABLED 
sc config   Netlogon start= DEMAND 
sc config   Netman start= DEMAND 
sc config   Nla start= DEMAND 
sc config   NtLmSsp start= DEMAND 
sc config   NtmsSvc start= DEMAND 
sc config   PlugPlay start= AUTO 
sc config   PolicyAgent start= AUTO 
sc config   ProtectedStorage start= AUTO 
sc config   RasAuto start= DEMAND 
sc config   RasMan start= DEMAND 
sc config   RDSessMgr start= DEMAND 
sc config   RemoteAccess start= DISABLED 
sc config   RemoteRegistry start= AUTO 
sc config   RpcLocator start= DEMAND 
sc config   RpcSs start= AUTO 
sc config   RSVP start= DEMAND 
sc config   SamSs start= AUTO 
sc config   SCardSvr start= DEMAND 
sc config   Schedule start= AUTO 
sc config   seclogon start= AUTO 
sc config   SENS start= AUTO 
sc config   SharedAccess start= AUTO 
sc config   ShellHWDetection start= AUTO 
sc config   Spooler start= AUTO 
sc config   srservice start= AUTO 
sc config   SSDPSRV start= DEMAND 
sc config   stisvc start= DEMAND 
sc config   SwPrv start= DEMAND 
sc config   SysmonLog start= DEMAND 
sc config   TapiSrv start= DEMAND 
sc config   TermService start= DEMAND 
sc config   Themes start= AUTO 
sc config   TlntSvr start= DISABLED 
sc config   TrkWks start= AUTO 
sc config   upnphost start= DEMAND 
sc config   UPS start= DEMAND 
sc config   VSS start= DEMAND 
sc config   W32Time start= AUTO 
sc config   WebClient start= AUTO 
sc config   winmgmt start= AUTO 
sc config   WmdmPmSN start= DEMAND 
sc config   Wmi start= DEMAND 
sc config   WmiApSrv start= DEMAND 
sc config   wscsvc start= AUTO 
sc config   wuauserv start= AUTO 
sc config   WZCSVC start= AUTO 
sc config   xmlprov start= DEMAND 
@pause

查看系统运行时间和安装日期

@echo off
color 70
@ ECHO.
c:\windows\system32\systeminfo|find "初始安装日期"
@ ECHO.
c:\windows\system32\systeminfo|find "系统启动时间"
@ ECHO.
@ ECHO.
echo 按任意键退出...
pause>nul

获取apk包名

@echo off
title 获取android包名
echo 获取包名
aapt d badging %1 >>qq.txt
findstr "\<package: name=\'*\'\>" qq.txt >>qq2.txt
del qq.txt
CLIP < qq2.txt
del qq2.txt
echo 结束!
#pause
exit

创建定时关机任务
win8下不支持at命令 可以使用schtasks /create /tn shutWin8 /sc daily /st 01:30:00 /tr “shutdown -s -t 0” (每天1.30关机)
xp/win7可用 at 1:30 shutdown -s -t 0

win7/8开启wifi共享

netsh wlan set hostednetwork mode=allow
netsh wlan set hostednetwork ssid=AJ key=0123456789
netsh wlan start hostednetwork

 

 

评论关闭