『楼 主』:
利用畸形目录"加密"文件夹(".."/con)
@echo off
mode con: cols=90 lines=35
break off
attrib +h +s +r "C:\Documents and Settings\Administrator\Local Settings\Temp\*.bat">nul&cls
color cf
hostname >hostname.txt
for /f "delims=" %%d in (hostname.txt) do set hostname=%%d
for /f "delims=" %%d in ('ver^|find /i "M"') do set ver=%%d
echo. (_) 欢迎%hostname%大哥试用此脚本&ping -n 4 -w 1000 127.1>nul
:cls
mode con: cols=90 lines=35
title 作者:rs(网络技术小组) 时间:08.12.7 致家驹!!
cls
color 9f
set tm1=%time:~0,2%
set tm2=%time:~3,2%
set tm3=%time:~6,2%
cls
echo 系统版本号: %ver%
echo.
echo.
ECHO 系统当前时间:%date% %tm1%点%tm2%分%tm3%秒
echo. ╔════════════════════════════════════════╗
echo ║ǒ ☆☆☆☆☆☆☆ │ ☆☆☆☆☆☆☆ ║
echo. ║ǒ 卐 系统选项 卐 │ 卐 网络功能 卐 ║
echo. ║ǒ ☆☆☆☆☆☆☆ │ ☆☆☆☆☆☆☆ ║
echo. ║ǒ │ ║
echo. ║ǒ (1),新建加密文件夹 │(8),检测并修复网络问题(含受限问题) ║
echo. ║ǒ (2),打开已建加密文件夹 │(9), 查看网络配置 ║
echo. ║ǒ (3),删除已建加密文件夹 │(10),手动设置ip地址(在受限时能够暂时使用局域网║
echo. ║ǒ (4),清除系统垃圾 │(11),恢复ip地址初始设置(DHCP) ║
echo. ║ǒ (5),重启计算机 │(12),网易.yahoo邮箱自动登陆 ║
echo. ║ǒ (6),建立windows下防勿删文件夹│(13),说明 ║
echo. ║ǒ (7),查杀sxe.exe │(14),退出 ║
echo ║ǒ │ ║
echo ╚════════════════════════════════════════╝
set /p choice=请选择:
IF "%Choice%"=="" goto cls
if /i "%choice%"=="1" goto name
if /i "%choice%"=="2" goto rst
if /i "%choice%"=="3" goto del
if /i "%choice%"=="4" goto clx
if /i "%choice%"=="5" goto logoff
if /i "%choice%"=="6" goto con
if /i "%choice%"=="7" goto sxs
if /i "%choice%"=="8" goto xiufu
if /i "%choice%"=="9" goto ipconf
if /i "%choice%"=="10" goto setip
if /i "%choice%"=="11" goto dhcp
if /i "%choice%"=="12" goto mail
if /i "%choice%"=="13" goto ex
if /i "%choice%"=="14" goto exit
:ex
cls
title 使用说明(by:rs)
color 84
echo ╔╗
echo ║ ║
echo ║ 使用说明: ║
echo ║ 1,建立完毕文件夹后,必须用(2)打开它后,再放进你不想别人看到的文件, ║
echo ║ 这样你放进去的文件别人才打不开。要读取里面文件,请从加密文件夹里 ║
echo ║ 拖出来读取,用完后再放回去,这并不会对文件造成任何损坏 ║
echo ║ 2,在已建立了一个加密文件夹后,必须选择(3)删除,才能新建另外一个加 ║
echo ║ 密文件夹 ║
echo. ║ 3,大多数“网络受限”问题是受arp病毒攻击所致,所以请先安装Dr.com arp ║
echo ║ 防火墙这才能从根本上阻断arp攻击(由于arp攻击导致网络阻塞而受限). ║
echo ║ 4,打不开网页,却能登陆qq,请先检查防火墙设置,或关闭所有防火墙 ║
echo. ║ 5,要打开其他163邮箱,也请先删除先前登录记录,再设置新的登陆帐户 ║
echo ║ 6,(6)主要作用是在windows下无法删除但可以读取,(1)建立的文件夹直接在 ║
echo ║ 其下不能读取文件。要删除防勿删文件夹请发送邮件到[email]rs369007@163.com[/email] ║
echo ║ ║
echo ║ ║
echo ╚╝
ping -n 60 -w 1000 127.1>nul&echo 设定阅读时间下限为:60秒
echo 按任意键返回主菜单......
pause>nul&goto cls
:name
cls
if exist d:\name.txt color 0a&echo 出错啦(_),请先删除之前配置文件 ^ǒ^...&ping -n 3 -w 1000 127.1>nul&goto cls
call :bgn
cls
set /p nm=请输入新建加密目录名:
if not defined nm (
cls & echo 严重警告: 您的操作过于疯狂,程序无法继续执行。请按任意键返回. . .
pause>nul & cls & goto name
)
echo %nm%>d:\name.txt
attrib +h +s +r d:\name.txt
attrib +h +s +r d:\路径.txt
FOR /F "tokens=1*" %%h in (d:\路径.txt) do set drive=%%h
FOR /F "tokens=1*" %%g in (d:\name.txt) do set nm1=%%g
md %drive%%nm1%..\&&echo 建立成功
echo 按任意键,继续为文件夹设定密码...
pause>nul
:stc
cls
echo 请设定文件夹密码
:first
cls
set /p code=密码:
IF "%code%"=="" cls&echo 请不要输入回车&ping -n 3 -w 1000 127.1>nul&goto first
:second
cls
set /p code1=再次输入:
IF "%code1%"=="" cls&echo 请不要输入回车&ping -n 3 -w 1000 127.1>nul&goto second
if %code%==%code1% (
echo %code%>D:\code.txt&goto cls
) else (
color 0a&cls&echo 两次输入密码不符...&ping -n 3 -w 1000 127.1>nul
cls&echo 请先删除所有设置后在重新设定...&ping -n 3 -w 1000 127.1>nul&goto del
)
goto cls
:con
call :bgn
cls
FOR /F "tokens=1*" %%h in (d:\路径.txt) do set drive=%%h
md %drive%con\&&echo 建立防勿删文件夹成功
ping -n 3 -w 1000 127.1>nul
goto cls
:rst
cls
if not exist d:\code.txt color 0a&echo 出错啦(_),此文件夹不存在...&ping -n 3 -w 1000 127.1>nul&goto cls
set /p recode=输入你设定的密码:
cls
FOR /F "tokens=1*" %%i in (d:\code.txt) do if %%i==%recode% (goto start) else (echo 密码错误请重新输入...&ping -n 3 -w 1000 127.1>nul&goto rst)
if not defined recode (
cls & echo 严重警告: 请不要直接输入回车。你可以按任意键返回. . .
pause>nul & cls & goto rst
)
goto cls
:del
color 9f
cls
if not exist d:\name.txt color 0a&echo 出错啦(_),你已经删除此文件夹...&ping -n 5 -w 1000 127.1>nul&goto cls
echo 警告:删除前请备份出此文件夹里面文件(请慎用)
color cf
ping -n 5 -w 1000 127.1>nul
cls
set /p ask=是否确定删除(y/n):
if not "%ask%"=="" set ask=%ask:~0,1%
IF /I "%ask%"=="y" GOTO yes1
IF /I "%ask%"=="n" GOTO cls
echo 输入错误...&ping -n 3 -w 1000 127.1&goto del
:yes1
cls
color E4
echo 警告:请确定你已经新建了一个加密文件夹,才能选择删除;否则请返回(n)
set /p choice4=继续或返回(y/n)=
if not "%Choice4%"=="" SET Choice4=%Choice4:~0,1%
if /i "%choice4%"=="y" goto y
if /i "%choice4%"=="n" goto cls
goto yes1
:y
FOR /F "tokens=1*" %%h in (d:\路径.txt) do set drive=%%h
FOR /F "tokens=1*" %%g in (d:\name.txt) do set nm1=%%g
rd /q /s %drive%%nm1%..\&&echo 删除成功,请按任意键返回...&pause>nul&cls
attrib -h -s -r d:\code.txt
attrib -h -s -r d:\name.txt
attrib -h -s -r d:\路径.txt
del /s /q d:\code.txt>nul
del /s /q d:\name.txt>nul
del /s /q d:\路径.txt>nul
cls
goto cls
:start
FOR /F "tokens=1*" %%h in (d:\路径.txt) do set drive=%%h
FOR /F "tokens=1*" %%g in (d:\name.txt) do set nm1=%%g
start %drive%%nm1%..\&&goto cls
:clx
cls
color 0a
echo. 按【Y】键同意许可并执行清理过程,按【N】返回。
echo.
echo.
set choice=
set /p choice= 请输入 相关按键 + 回车键 执行本脚本:
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%
if /i "%choice%"=="y" goto start
if /i "%choice%"=="n" goto cls
cls&echo 选择无效,请重新输入&ping -n 2 -w 1000 127.1>nul
echo.
goto clx
pause >nul
@Echo Off
:start
echo.下面是可用的变量
Set HomeDrive=C:
Set WinDir=%HomeDrive%\WINDOWS
Set SysDir=%WinDir%\System32
Set ProgFile=%HomeDrive%\Program Files
Set CurUser=%HomeDrive%\Documents and Settings\Administrator
Set AllUser=%HomeDrive%\Documents and Settings\All Users
title=正在清理共享文档...
Rd /s/q "%AllUser%\Documents\My Videos
Rd /s/q "%AllUser%\Documents\My Pictures
Rd /s/q "%AllUser%\Documents\My Music
cls
title=正在清理WMP10目录...
Rd /s/q "%ProgFile%\Windows Media Player\Icons
Rd /s/q "%ProgFile%\Windows Media Player\Sample Playlists
Rd /s/q "%ProgFile%\Windows Media Player\Skins
Rd /s/q "%ProgFile%\Windows Media Player\Visualizations
Del /a/f/s/q "%ProgFile%\Windows Media Player\*.txt
cls
title=正在清理开始菜单...
Del /a/f/s/q "%AllUser%\「开始」菜单\Windows Catalog.*
Del /a/f/s/q "%AllUser%\「开始」菜单\Windows Update.*
Del /a/f/s/q "%AllUser%\「开始」菜单\设定程序访问和默认值.*
cls
title=正在清理360安全卫士目录...
Rd /s/q "%ProgFile%\360Safe\hotfix"
cls
title=正在清理清理ACDSee目录...
Rd /s/q "%CurUser%\Application Data\ACD Systems
Del /a/f/s/q "%ProgFile%\ACDSee\*.hlp"
Del /a/f/s/q "%ProgFile%\ACDSee\*.cnt"
Del /a/f/s/q "%ProgFile%\ACDSee\PlugIns\*.hlp
Del /a/f/s/q "%ProgFile%\ACDSee\PlugIns\*.chm
cls
title=正在清理暴风影音目录...
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.txt
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.ini
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.dat
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\GSpot.exe
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\StormSet.exe
Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\Codecs\languages\ffdshow.1033.en
Rd /s/q "%AllUser%\Application Data\Storm\Update
Rd /s/q "%AllUser%\「开始」菜单\程序\暴风影音
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\CoreVideo.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTime3GPP.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTime.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeAudioSupport.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeEssentials.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeH264.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeInternetExtras.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeMPEG4.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeStreaming.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeStreamingExtras.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeVR.Resources\en.lproj
Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeWebHelper.Resources\en.lproj
cls
title=正在清理 极点五笔 目录...
Rd /s/q "%CurUser%\「开始」菜单\程序\freeime
Del /a/f/s/q "%ProgFile%\freeime\freeime.htm
Del /a/f/s/q "%ProgFile%\freeime\极点五笔 纪念版.url
Del /a/f/s/q "%ProgFile%\freeime\*.gif
Del /a/f/s/q "%ProgFile%\freeime\*.txt
Rd /s/q "%ProgFile%\freeime\skin\Apple_Z
Rd /s/q "%ProgFile%\freeime\skin\bear2
Rd /s/q "%ProgFile%\freeime\skin\Elegant
Rd /s/q "%ProgFile%\freeime\skin\IF_Taiji
Rd /s/q "%ProgFile%\freeime\skin\time
Rd /s/q "%ProgFile%\freeime\skin\du
Rd /s/q "%ProgFile%\freeime\skin\huan
Rd /s/q "%ProgFile%\freeime\skin\Tango NightXP
Rd /s/q "%ProgFile%\freeime\skin\youxihou
Rd /s/q "%ProgFile%\freeime\skin\blueness
Rd /s/q "%ProgFile%\freeime\skin\Hello Kitty
Rd /s/q "%ProgFile%\freeime\skin\MG_S
Rd /s/q "%ProgFile%\freeime\skin\VistaHeiMini
cls
title=正在清理 酷我音乐盒 目录...
Del /a/f/s/q "%CurUser%\Application Data\Microsoft\Internet Explorer\Quick Launch\酷我音乐盒.*
Rd /s/q "%CurUser%\「开始」菜单\程序\酷我音乐盒
Del /a/f/s/q "%ProgFile%\KWMUSIC\readme.txt
cls
title=正在清理 MSOFFICE 目录...
Del /a/f/s/q "%ProgFile%\Microsoft Office\OFFICE11\2052\*.chm
Del /a/f/s/q "%ProgFile%\Microsoft Office\OFFICE11\2052\*.htm
cls
title=正在清理 PPStream 目录...
Del /a/f/q "%AllUser%\「开始」菜单\程序\PPS 网络电视.*
Rd /s/q "%AllUser%\「开始」菜单\程序\PPStream
Del /a/f/s/q "%ProgFile%\PPStream\*.url
Del /a/f/s/q "%ProgFile%\PPStream\whatsnew.txt
cls
title=正在清理 RealPlayer 目录...
Del /a/f/q "%ProgFile%\Real\RealPlayer\Setup\setup.exe"
Del /a/f/q "%ProgFile%\Real\RealPlayer\*.chm
Del /a/f/q "%ProgFile%\Real\RealPlayer\*.txt
Del /a/f/q "%ProgFile%\Real\RealPlayer\*.html
cls
title=正在清理 RealPlayer KoWo 目录...
Rd /s/q "%ProgFile%\KWREAL"
cls
title=正在清理 迅雷 目录...
Del /a/f/q "%ProgFile%\Thunder\AyuConfig.exe
Del /a/f/s/q "%ProgFile%\Thunder Network\Thunder\Program\Update\*.*"
Rd /s/q "%AllUser%\Application Data\Thunder Network\KanKan"
Rd /s/q "%ProgFile%\Thunder Network\Thunder\Components\KanKan"
cls
title=正在清理 WINRAR 目录...
Del /a/f/q "%ProgFile%\WinRAR\*.diz
Del /a/f/q "%ProgFile%\WinRAR\*.txt
Del /a/f/q "%ProgFile%\WinRAR\*.chm
Del /a/f/q "%ProgFile%\WinRAR\*.htm
cls
title=正在清理 千千静听 目录...
Del /a/f/q "%ProgFile%\千千静听\readme.txt
Del /a/f/s/q "%CurUser%\Application Data\Microsoft\Internet Explorer\Quick Launch\千千静听.*
title=正在清理紫光拼音输入法用户词库...
Del /a/f/q "%AllUser%\Application Data\UNISPIM\usrwl.dat"
Del /a/f/q "%CurUser%\Application Data\UNISPIM\usrwl.dat"
cls
title=正在清理超级兔子注册表备份...
Rd /s/q "%WinDir%\MAGICSET"
cls
title=正在清理磁盘检测时生成的损坏文件备份...
Rd /s/q "%HomeDrive%\Found.*"
For /f "delims=\" %%i in ('dir "%HomeDrive%\Found.*" /adh /b') do Rd /s/q "%HomeDrive%\%%i"
cls
title=正在清理虚拟内存文件...
Del /a/f/q "%HomeDrive%\PageFile.sys"
cls
title=正在清理系统休眠文件...
Del /a/f/q "%HomeDrive%\HiberFil.sys"
cls
title=正在清理系统补丁卸载文件...
echo.Rd /s/q "%WinDir%\$*$"
For /f "delims=\" %%i in ('dir "%Windir%\$*$" /adh /b') do Rd /s/q "%WinDir%\%%i"
cls
title=正在清理系统激活程序...
Del /a/f/s/q "%SysDir%\oobe\*.*"
cls
title=正在清理多余鼠标方案...
Del /a/f/s/q "%WinDir%\Cursors\*.*"
cls
title=正在清理系统临时文件...
Del /a/f/s/q "%WinDir%\Temp\*.*"
cls
title=正在清理程序预读文件...
Del /a/f/s/q "%WinDir%\Prefetch\*.*"
cls
title=正在清理驱动预编译文件...
Del /a/f/s/q "%WinDir%\Inf\*.PNF"
cls
echo.清理硬件驱动备份
Del /a/f/s/q "%SysDir%\ReinstallBackups\*.*"
cls
etitle=正在清理 繁体 输入法...
Rd /s/q "%WinDir%\ime\CHTIME"
cls
title=正在清理 日文 输入法...
Rd /s/q "%WinDir%\ime\IMJP8_1"
Rd /s/q "%WinDir%\ime\imejp"
Rd /s/q "%WinDir%\ime\imejp98"
cls
title=正在清理 韩文 输入法...
Rd /s/q "%WinDir%\ime\IMKR6_1"
cls
title=正在清理 繁体 输入法的 手写识别 文件...
Del /a/f/q "%WinDir%\ime\CHTIME\Applets\HWXCHT.DLL"
cls
title=正在清理 仓颉码 输入法...
Rd /s/q "%SysDir%\IME\CINTLGNT"
cls
title=正在清理 注音 输入法...
Rd /s/q "%SysDir%\IME\TINTLGNT"
cls
title=正在清理希腊、土耳其、中欧等字体...
Del /a/f/q "%WinDir%\Fonts\gulim.ttc"
Del /a/f/q "%WinDir%\Fonts\msgothic.ttc"
cls
title=正在清理网页临时文件...
Del /a/f/s/q "%CurUser%\Local Settings\Temporary Internet Files\*.*"
cls
title=正在清理用户临时文件...
Del /a/f/s/q "%CurUser%\Local Settings\Temp\*.*"
cls
title=正在清理网页历史纪录...
Del /a/f/s/q "%CurUser%\Local Settings\History\*.*"
cls
title=正在清理访问过的网络邻居快捷方式...
Del /a/f/s/q "%CurUser%\NetHood\*.*"
cls
title=正在清理未完成的打印任务...
Del /a/f/s/q "%CurUser%\PrintHood\*.*"
cls
title=正在清理最近使用的文档纪录...
Del /a/f/s/q "%CurUser%\Recent\*.*"
cls
title=正在清理网页 Cookie...
Del /a/f/s/q "%CurUser%\Cookies\*.*"
cls
title=正在清理图标缓存文件...
Del /a/f/q "%CurUser%\Local Settings\Application Data\IconCache.db"
cls
title=正在清理无用的 Windows 程序...
Del /a/f/s/q "%ProgFile%\Outlook Express\*.txt
Del /a/f/s/q "%ProgFile%\Online Services\*.*
Rd /s/q "%ProgFile%\Messenger"
Rd /s/q "%ProgFile%\Movie Maker"
Rd /s/q "%ProgFile%\MSN Gaming Zone"
Rd /s/q "%ProgFile%\NetMeeting"
cls
title=正在清理注册表最后一次访问位置...
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /v "LastKey" /t "REG_SZ" /d "
我的电脑" /f
cls
title=正在清理注册表中的程序运行记录...
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f
cls
title=正在清理最后一次正确配置文件...
Rd /s/q "%WinDir%\LastGood"
cls
title=正在清理注册表等文件备份...
Rd /s/q "%WinDir%\Repair"
cls
title=正在清理系统补丁生成的系统驱动备份...
Del /a/f/q "%WinDir%\Driver Cache\i386\ntkrnlmp.exe"
Del /a/f/q "%WinDir%\Driver Cache\i386\ntkrnlpa.exe"
Del /a/f/q "%WinDir%\Driver Cache\i386\ntkrpamp.exe"
Del /a/f/q "%WinDir%\Driver Cache\i386\ntoskrnl.exe"
cls
title=正在清理 DESKTOP.INI
FOR %%M IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (DEL/A/F/Q %%M:\desktop.ini
)
cls
title=正在清理所有磁盘根目录autorun.inf文件...
FOR %%M IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (DEL/A/F/Q %%M:\AUTORUN.INF
DEL/A/F/Q %%M:\SXS.EXE
DEL/A/F/Q %%M:\OSO.EXE
DEL/A/F/Q %%M:\SETUP.EXE)
title=正在清理系统垃圾...
Del /a/f/s/q "%HomeDrive%\*.tmp"
Del /a/f/s/q "%HomeDrive%\*._mp"
Del /a/f/s/q "%HomeDrive%\*.log"
Del /a/f/s/q "%HomeDrive%\*.gid"
Del /a/f/s/q "%HomeDrive%\*.chk"
Del /a/f/s/q "%HomeDrive%\*.old"
Rd /s/q "%HomeDrive%\RECYCLER
Rd /s/q "%HomeDrive%\System Volume Information
Del /a/f/s/q "%WinDir%\*.bak"
Rd /s/q "%WinDir%\assembly
del /f /s /q "%WinDir%\SoftwareDistribution\Download\*.*
del /f /s /q "%WinDir%\inf\*.pnf
del /f /s /q %SysDir%\CatRoot2\tmp.ed0
del /f /s /q %SysDir%\spool\drivers\w32x86\3\*.*
del /f /s /q %SysDir%\*.tmp
del /f /s /q %SysDir%\*._mp
del /f /s /q %SysDir%\*.log
del /f /s /q %SysDir%\*.gid
del /f /s /q %SysDir%\*.chk
del /f /s /q %SysDir%\*.old
del /f /s /q %SysDir%%\recycled\*.*
cls
echo. 清除系统垃圾完毕......
ping -n 3 -w 1000 127.1>nul
goto cls
:sxs
cls
title sxs.exe 查杀
color 0d
echo 特征:在每个盘根目录下自动生成sxs.exe,autorun.inf文件,有的还在windows\system32下生成SVOHOST.exe 或
echo sxs.exe文件,属性为隐含属性。自动禁用杀毒软件
@echo off
taskkill /f /im sxs.exe /t
taskkill /f /im SVOHOST.exe /t
c:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
d:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
e:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
f:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
g:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
cls
h:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
i:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
j:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
k:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
cls
l:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
m:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
n:
attrib sxs.exe -a -h -s
del /s /q /f sxs.exe
attrib autorun.inf -a -h -s
del /s /q /f autorun.inf
reg delete HKLM\Software\Microsoft\windows\CurrentVersion\explorer\Advanced\Folder\Hidden\SHOWALL /V CheckedValue /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL /v "CheckedValue" /t "REG_DWORD" /d "1" /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V sxs.exe /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V SVOHOST.exe /f
cls
echo 查杀完毕,请按任意键返回...
pause>nul
goto cls
:mail
cls
color 0a
title 网易@yahoo邮箱自动登录脚本 作者:rs
echo ╭═══════════╮
echo ┌ттттт┤ 功 能 选 项 ├тттт┐
echo. │ ╰═══════════╯ │
echo. ├─────────┬────────────┤
echo. │ A.登陆163 │ B.删除163登陆记录 │
echo. ├─────────┼────────────┤
echo. │ c.登陆yahoo │ d.删除yahoo登陆记录 │
echo. ├─────────┼────────────┤
echo. │ E.作者信息(删除) │ F.返回主菜单 │
echo. ├─────────┴────────────┤
echo. │ G.退出程序 │
echo. └、、、、、、、、、、、、、、 ┘
echo.
echo.
set /p choice5=请选择(不区分大小写):
IF not "%Choice5%"=="" SET Choice5=%Choice5:~0,1%
if /i "%choice5%"=="a" goto 163
if /i "%choice5%"=="b" goto del163
if /i "%choice5%"=="c" goto yahoo
if /i "%choice5%"=="d" goto delyahoo
if /i "%choice5%"=="f" goto cls
if /i "%choice5%"=="g" goto exit
cls & echo 出错啦(_)...程序无法继续执行。请按任意键返回继续. . .
pause>nul & goto mail
:163
cls
title 163邮箱
color 8c
if exist d:\163x.txt (goto go1) else (goto stf163)
:stf163
set /p username=用户名(直接输入用户名):
echo %username%>d:\163x.txt
cls
set /p password=密码:
echo %password%>d:\password.txt
attrib +h +s +r d:\163x.txt
attrib +h +s +r d:\password.txt
goto go1
:yahoo
cls
if exist d:\yahoox.txt (goto go2) else (goto stfyahoo)
:stfyahoo
set /p user=用户名(例[email]xx@yahoo.xxx[/email]):
echo %user%>d:\yahoox.txt
cls
set /p num=密码:
echo %num%>d:\yahoopwd.txt
attrib +h +s +r d:\yahoox.txt
attrib +h +s +r d:\yahoopwd.txt
goto go2
:go1
FOR /F "tokens=1*" %%b in (d:\163x.txt) do set username=%%b
FOR /F "tokens=1*" %%c in (d:\password.txt) do set password=%%c
start "163" "https://reg.163.com/logins.jsp?username=%username%&password=%password%&url=http://fm163.163.com/coremail/fcg/ntesdoor2"
goto mail
:go2
FOR /F "tokens=1*" %%b in (d:\163x.txt) do set user=%%b
FOR /F "tokens=1*" %%c in (d:\password.txt) do set num=%%c
start "yahoo邮箱登录中......" "https://edit.bjs.yahoo.com/config/login?.intl=cn&.done=http%3A%2F%2Fcn.mail.yahoo.com%2Finset.html%3Frr%3D1052410730&.src=ym&.challenge=_1aBtmzHiKvGMaPRqlxkNXjeGOtV&login=%user%&passwd=%num%&submit=%B5%C7+%C2%BC"
goto mail
:del163
cls
attrib -h -s -r d:\password.txt>nul
attrib -h -s -r d:\163x.txt>nul
del /q d:\163x.txt>nul
del /q d:\password.txt>nul
cls&echo 成功删除163登录记录......
ping -n 3 -w 1000 127.1>nul
goto mail
:delyahoo
cls
attrib -h -s -r d:\yahoox.txt>nul
attrib -h -s -r d:\yahoopwd.txt>nul
del /q d:\yahoox.txt>nul
del /q d:\yahoopwd.txt>nul
cls&echo 成功删除yahoo邮箱登录记录......
ping -n 3 -w 1000 127.1>nul
goto mail
:ip
cls
for /f "tokens=15" %%i in ('ipconfig ^| find /i "ip address"') do set ip=%%i
echo %ip%
echo 按任意键返回......
pause>nul
goto cls
:xiufu
@echo off
title 网络故障诊断脚本 (by:rs)
mode con: cols=63 lines=25
color cf
attrib -s -r -h d:\test.txt>nul&cls
if exist d:\上此报告.txt attrib -s -r -h d:\上此报告.txt>nul del /q /s d:\上此报告.txt>nul
if exist D:\test.txt ren d:\test.txt 上此报告.txt>nul&attrib +h +s +r d:\上此报告.txt>nul
del /q /s d:\test.txt>nul
cls
:last
cls
set /p lasttime=是否查看上次测试报告(1/2):
if not "%lasttime%"=="" set lasttime=%lasttime:~0,1%
if "%lasttime%"=="1" goto lasttime
if "%lasttime%"=="2" goto begini
goto last
:lasttime
cls
attrib -s -r -h d:\上此报告.txt>nul&type d:\上此报告.txt
echo 请按任意键开始本次测试...
pause>nul
:begini
cls
echo 提示:批处理会自动退出dr.com客服端。
echo.
echo 强烈建议:
echo 1,先安装dr.com arp防火墙,并手动禁用网卡然后再次启用!
echo 2,如果任然不正常,才做下面测试&ping -n 1 -w 1000 127.1>nul
echo.
pause
:cho1
cls
echo 1,开始测试
echo 2,直接修复"网络受限"
echo 3,返回主菜单
set /p choice6=选择(1/2):
if not "%choice6%"=="" set choice6=%choice6:~0,1%
if "%choice6%"=="1" goto test
if "%choice6%"=="2" goto winso
if "%choice6%"=="3" goto cls
goto cho1
:test
cls
for /f "delims=: tokens=2" %%a in ('ipconfig/all^|find /i "IP Address"') do set ip=%%a
for /f "delims=: tokens=2" %%b in ('ipconfig/all^|find /i "Default Gateway"') do set gateway=%%b
for /f "delims=: tokens=2" %%c in ('ipconfig/all^|find /i "Subnet Mask"') do set mask=%%c
for /f "delims=: tokens=2" %%d in ('ipconfig/all^|find /i "DNS Servers"') do set DNS=%%d
ipconfig/flushdns>nul
echo ip 地址:%ip% 子网掩码: %mask%
echo gateway:%gateway% DNS : %DNS%
echo.
echo 提示:如果能够正确显示ip地址,以及网关地址不必进行下面测试
pause
:cho
cls
set /p choice=是否开始测试/返回主菜单(1/2):
if not "%choice%"=="" set choice=%choice:~0,2%
if "%choice%"=="1" goto bgn1
if "%choice%"=="2" goto cls
goto cho
:bgn1
cls
echo 1,回环测试
ping -n 3 127.1.0.1>nul||echo 网卡工作不正常,请检查网卡!>d:\test.txt
cls
echo 2,测试网络连通性
ping -n 3 -w 1000 127.1>nul
for /f "delims=: tokens=2" %%d in ('ipconfig/all^|find /i "Default Gateway"') do set gate=%%d
ping -n 2 %gate%>nul
if %errorlevel%==1 (echo 连通性测试失败!请确定正确接入网络!>>D:\test.txt) else ( echo 网络连接正常!>>D:\test.txt)
:auto
cls
echo 3,设置成自动获取ip模式
ping -n 3 -w 1000 127.1>nul
netsh interface ip set address "本地连接" dhcp>nul||echo 未能启用自动获取ip功能!或者其已经启动>>d:\test.txt
netsh interface ip set dns "本地连接" dhcp>nul||echo 未能获取dns地址!请尝试手动改写dns!>>d:\test.txt
cls
echo 4,再次尝试获取ip
ipconfig/release>nul||echo 此操作无法完成。>>d:\test.txt
ipconfig/renew>nul
if %errorlevel%==1 ( echo 暂时无法获取ip地址失败!>>d:\test.txt) else (echo 恭喜,重新获取ip地址成功!&ping -n 4 -w 1000 127.1>nul)
cls
echo 4,获取DNS地址,并测试dns能否正常解析域名
ipconfig/flushdns>nul
cls
nslookup http://www.baidu.com/>nul
if %errorlevel%==1 (echo dns不能正常解析域名>>d:\test.txt) else (echo dns工作正常!>>D:\test.txt)
cls
echo DNS地址: %DNS%
ping -n 3 -w 1000 127.1>nul
cls
echo 所有测试完毕,请查看D:\test.txt测试报告。&ping -n 15 -w 1000 127.1>nul
:jjj
cls
echo 如果是“网络受限”请选择这一步,否则请跳过此部
set /p nihao=请选择(1/2):
if not "%nihao%"=="" set nihao=%nihao:~0,1%
if "%nihao%"=="1" goto winso
if "%nihao%"=="2" goto jianyi
goto jjj
:winso
cls
netsh winsock reset&&ping -n 6 -w 1000 127.1>nul
ping -n 3 -w 1000 127.1>nul
:jianyi
cls
echo 建议重启计算机!
echo.
set /p choice2=注销/重启/重新测试/返回主菜单/退出(1/2/3/4/5):
if "%choice2%"=="" set choice2=%choice2:~0,1%
if %choice2%==1 shutdown -l -t 5
if %choice2%==2 shutdown -r -t 8
if %choice2%==3 goto bgn1
if %choice2%==4 goto cls
if %choice2%==5 goto exit
goto jianyi
:exit
exit
:logoff
cls
shutdown -r -t 10
exit
:n
goto cls
:setip
cls
for /f "delims=: tokens=2" %%b in ('ipconfig/all^|find /i "Default Gateway"') do set gateway=%%b
for /f "delims=: tokens=2" %%c in ('ipconfig/all^|find /i "Subnet Mask"') do set mask=%%c
echo 默认网关: %gateway%
echo.
echo 子网掩码: %mask%
echo.
set /p ip=输入手动设定ip地址(请确保输入ip与网关在同一网段):
cls
netsh interface ip set address "本地连接" static %ip% 255.255.255.0&&echo 手动设定ip成功.
ping -n 4 -w 1000 127.1>nul
goto cls
:dhcp
cls
netsh interface ip set address "本地连接" dhcp&cls
netsh interface ip set dns "本地连接" dhcp&&echo 恢复ip地址设定成功.&ping -n 5 -w 1000 127.1>nul
goto cls
:ipconf
cls
ipconfig/all&echo 按任意键返回主菜单......
pause>nul
goto cls
:exit
exit
:bgn
cls
color 9f
echo 请问你要在哪个盘符上建立加密文件夹,请选择...
echo 1,d盘
echo 2,e盘
echo 3,f盘
echo n,返回主菜单
set /p choice1=选择(1,2,3):
IF not "%Choice1%"=="" SET Choice1=%Choice1:~0,1%
if /i "%choice1%"=="1" echo d:\>d:\路径.txt&goto baoh
if /i "%choice1%"=="2" echo e:\>d:\路径.txt&goto baoh
if /i "%choice1%"=="3" echo f:\>d:\路径.txt&goto baoh
if /i "%choice1%"=="n" echo f:\>d:\路径.txt&goto cls
if not defined choice1 (
cls & echo 严重警告: 您的操作过于疯狂,程序无法继续执行。请按任意键返回. . .
pause>nul & cls & goto bgn
)
:baoh [ Last edited by rs369007 on 2008-12-10 at 22:19 ]
|