<?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html"><![CDATA[为荣誉而战！]]></title>
  <subtitle type="html"><![CDATA[Shortway&#39;s Blog（技术分站）]]></subtitle>
  <id>http://www.wjmhxx.com/Shortway/</id> 
  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/" /> 
  <link rel="self" type="application/atom+xml" href="http://www.wjmhxx.com/Shortway/atom.asp" /> 
  <generator uri="http://www.pjhome.net/" version="2.4.1022">PJBlog2</generator> 
  <updated>2010-09-05T19:32:39+08:00</updated> 

  <entry>
	  <title type="html"><![CDATA[sina ad javascript]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=4" label="Javascript" /> 
	  <updated>2010-09-05T19:32:39+08:00</updated>
	  <published>2010-09-05T19:32:39+08:00</published>
		  <summary type="html"><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp30921">
<!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.0 Transitional//EN&#34;>
<HTML><HEAD><TITLE>广告</TITLE>
<META http-equiv=Content-Type content=&#34;text/html; charset=gb2312&#34;>
<META content=&#34;MSHTML 6.00.2800.1458&#34; name=GENERATOR>
<script type=&#34;text/javascript&#34; src=&#34;<a href="http://image2.sina.com.cn/home/sinaflash.js" target="_blank">http://image2.sina.com.cn/home/sinaflash.js</a>&#34;></script>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight=&#34;0&#34;>
<SCRIPT lanaguage=&#34;javascript&#34;>


    var par = location.search.substr(1);
    var ary = par.split(&#34;${}&#34;);
    function replaceChar(adSrc){
        var RexStr = /\=|\<|\>|\&#34;|\'|\(|\)|\*|\;/g
        adSrc = adSrc.replace(RexStr,
            function(matchSrc){
                switch(matchSrc){
                    case &#34;=&#34;:
                    case &#34;<&#34;:
                    case &#34;>&#34;:
                    case &#34;\&#34;&#34;:
                    case &#34;'&#34;:
                    case &#34;(&#34;:
                    case &#34;)&#34;:
                    case &#34;*&#34;:
                    case &#34;;&#34;:return &#34;&#34;;break;
                    default :break;
                }
            }
        )
        return adSrc;
    }
    ary[2]=replaceChar(ary[2]);
    if(ary[1]!=&#34;swf&#34;)
    {
        document.write(&#34;<a href='&#34; + ary[0] + &#34;' target = '_blank'><img src='&#34; + ary[2] + &#34;' WIDTH=750 HEIGHT=450 border = 0></a>&#34;);
    }
    else
    {
        document.write(&#34;<div id='backPop'>不支持Flash</div>&#34;);
        var FlashbackPop = new sinaFlash(ary[2], &#34;ad_backPop&#34;, &#34;750&#34;, &#34;450&#34;, &#34;7&#34;, &#34;&#34;, false, &#34;High&#34;);
        FlashbackPop.addParam(&#34;wmode&#34;, &#34;opaque&#34;);
        FlashbackPop.addVariable(&#34;adlink&#34;, escape(ary[0]));
        FlashbackPop.write(&#34;backPop&#34;);
    }
</SCRIPT>


<script language=&#34;JavaScript&#34;>
    blur();
    showAD();

    function showAD(){
        try{
            self.moveTo(100,50);
            self.resizeTo(760,450);
            self.resizeTo(760,450+(450-self.document.body.clientHeight));
            blur();
        }catch(e){
            setTimeout(showAD,2000);
        }
    }


    /*实例
    <a href="http://d1.sina.com.cn/d1images/pb/pbv4.html?http://sina.allyes.com/main/adfclick?db=sina" target="_blank">http://d1.sina.com.cn/d1images/pb/pbv4.html?http://sina.allyes.com/main/adfclick?db=sina</a>&amp;bid=214871,265108,270226&amp;cid=0,0,0&amp;sid=261958&amp;advid=1293&amp;camid=39724&amp;show=ignore&amp;url=http://hd.sina.com.cn/weiboyear/${}jpg${}<a href="http://d2.sina.com.cn/201008/27/247047.jpg" target="_blank">http://d2.sina.com.cn/201008/27/247047.jpg</a>

    ary[0]：<a href="http://sina.allyes.com/main/adfclick?db=sina" target="_blank">http://sina.allyes.com/main/adfclick?db=sina</a>&amp;bid=214871,265108,270226&amp;cid=0,0,0&amp;sid=261958&amp;advid=1293&amp;camid=39724&amp;show=ignore&amp;url=http://hd.sina.com.cn/weiboyear/
    ary[1]：jpg
    ary[2]：<a href="http://d2.sina.com.cn/201008/27/247047.jpg" target="_blank">http://d2.sina.com.cn/201008/27/247047.jpg</a>
    */
</script>

</BODY>
</HTML>

</TEXTAREA><br/><INPUT onclick="runEx('temp30921')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp30921')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>通用函数：Request<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp22635">
	function Request(argname)
	{
		var url = document.location.href;
		var arrStr = url.substring(url.indexOf(&#34;?&#34;) + 1).split(&#34;&amp;&#34;);
		for(var i = 0; i < arrStr.length; i++)
		{
			var loc = arrStr[i].indexOf(argname + &#34;=&#34;);
			if(loc != -1)
			{
				return arrStr[i].replace(argname + &#34;=&#34;, &#34;&#34;).replace(&#34;?&#34;, &#34;&#34;);
				break;
			}
		}
		return &#34;&#34;;
	}
</TEXTAREA><br/><INPUT onclick="runEx('temp22635')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp22635')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=78" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=78</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[批量顺序重命名.bat(原)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=13" label="Bat批处理" /> 
	  <updated>2010-03-04T11:24:45+08:00</updated>
	  <published>2010-03-04T11:24:45+08:00</published>
		  <summary type="html"><![CDATA[文件夹内有大量同一类型的文件，做一个批处理，批量按顺序重命名。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">@echo off<br/>setlocal enabledelayedexpansion<br/>set n=0<br/>for /f &#34;tokens=*&#34; %%a in (&#39;dir /b /os *-4*.html&#39;) do (<br/>set /a n+=1<br/>ren %%a kk-4-!n!.html<br/>)</div></div><br/><br/>关键代码说明：<br/><br/>in (&#39;dir /b /os *-4*.html&#39;) ：<br/>/b：简洁文件列表<br/>/os：按文件大小顺序（可选：/on按名称；/od按日期；-逆序,详细请看dir命令的说明）<br/><br/>set /a n+=1：设置环境变量n每次循环递增1<br/><br/>应用环境变量的值时前后一定加“!”.<br/><br/><br/><br/>得到一批各单元的教案，整理有点繁琐。因此做了一个：<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">@echo off<br/>setlocal enabledelayedexpansion<br/><br/>for %%c in (01 02 03 04 05 06 07 08 09 10 11 12) do (<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第一单元*.doc 苏教版语文第%%c册第1单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第二单元*.doc 苏教版语文第%%c册第2单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第三单元*.doc 苏教版语文第%%c册第3单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第四单元*.doc 苏教版语文第%%c册第4单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第五单元*.doc 苏教版语文第%%c册第5单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第六单元*.doc 苏教版语文第%%c册第6单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第七单元*.doc 苏教版语文第%%c册第7单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第八单元*.doc 苏教版语文第%%c册第8单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第九单元*.doc 苏教版语文第%%c册第9单元*.doc<br/>&#160;&#160;&#160;&#160;ren 苏教版语文第%%c册第十单元*.doc 苏教版语文第%%c册第10单元*.doc<br/><br/>&#160;&#160;&#160;&#160;for %%d in (1 2 3 4 5 6 7 8 9 10) do (<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;set n=0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for /f &#34;tokens=*&#34; %%a in (&#39;dir /b /os 苏教版语文第%%c册第%%d单元*.doc&#39;) do (<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;set /a n+=1<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ren &#34;%%a&#34; &#34;苏教版语文第%%c册第%%d单元-!n!.doc&#34;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;)<br/>&#160;&#160;&#160;&#160;)<br/>)</div></div><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=77" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=77</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[substring和substr方法（转）]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=4" label="Javascript" /> 
	  <updated>2010-01-07T14:58:56+08:00</updated>
	  <published>2010-01-07T14:58:56+08:00</published>
		  <summary type="html"><![CDATA[1.<strong>substring 方法</strong><br/><br/>定义和用法<br/><br/>substring 方法用于提取字符串中介于两个指定下标之间的字符。<br/><br/>语法<br/><br/>stringObject.substring(start,stop)<br/><br/>参数&nbsp;&nbsp;&nbsp;&nbsp; 描述<br/>start&nbsp;&nbsp;&nbsp;&nbsp;必需。一个非负的整数，规定要提取的子串的第一个字符在 stringObject 中的位置。<br/>stop&nbsp;&nbsp;&nbsp;&nbsp; 可选。一个非负的整数，比要提取的子串的最后一个字符在 stringObject 中的位置多 1。如果省略该参数，那么返回的子串会一直到字符串的结尾。<br/><br/>返回值<br/><br/>一个新的字符串，该字符串值包含 stringObject 的一个子字符串，其内容是从 start 处到 stop-1 处的所有字符，其长度为 stop 减 start。<br/><br/>说明<br/><br/>substring 方法返回的子串包括 start 处的字符，但不包括 end 处的字符。<br/>如果 start 与 end 相等，那么该方法返回的就是一个空串（即长度为 0 的字符串）。<br/>如果 start 比 end 大，那么该方法在提取子串之前会先交换这两个参数。<br/>如果 start 或 end 为负数，那么它将被替换为 0。<br/><br/>2.<strong>substr 方法</strong><br/><br/>定义和用法<br/><br/>substr 方法用于返回一个从指定位置开始的指定长度的子字符串。<br/><br/>语法<br/><br/>stringObject.substr(start [, length ])<br/><br/>参数&nbsp;&nbsp;&nbsp;&nbsp;描述<br/>start&nbsp;&nbsp; 必需。所需的子字符串的起始位置。字符串中的第一个字符的索引为 0。<br/>length 可选。在返回的子字符串中应包括的字符个数。<br/><br/>说明<br/><br/>如果 length 为 0 或负数，将返回一个空字符串。<br/>如果没有指定该参数，则子字符串将延续到stringObject的最后。<br/><br/>举例：<br/>var str = &#34;0123456789&#34;;<br/><br/>alert(str.substring(0));------------&#34;0123456789&#34;<br/>alert(str.substring(5));------------&#34;56789&#34;<br/>alert(str.substring(10));-----------&#34;&#34;<br/>alert(str.substring(12));-----------&#34;&#34;<br/>alert(str.substring(-5));-----------&#34;0123456789&#34;<br/>alert(str.substring(-10));----------&#34;0123456789&#34;<br/>alert(str.substring(-12));----------&#34;0123456789&#34;<br/>alert(str.substring(0,5));----------&#34;01234&#34;<br/>alert(str.substring(0,10));---------&#34;0123456789&#34;<br/>alert(str.substring(0,12));---------&#34;0123456789&#34;<br/>alert(str.substring(2,0));----------&#34;01&#34;<br/>alert(str.substring(2,2));----------&#34;&#34;<br/>alert(str.substring(2,5));----------&#34;234&#34;<br/>alert(str.substring(2,12));---------&#34;23456789&#34;<br/>alert(str.substring(2,-2));---------&#34;01&#34;<br/>alert(str.substring(-1,5));---------&#34;01234&#34;<br/>alert(str.substring(-1,-5));--------&#34;&#34;<br/><br/>alert(str.substr(0));---------------&#34;0123456789&#34;<br/>alert(str.substr(5));---------------&#34;56789&#34;<br/>alert(str.substr(10));--------------&#34;&#34;<br/>alert(str.substr(12));--------------&#34;&#34;<br/>alert(str.substr(-5));--------------&#34;0123456789&#34;<br/>alert(str.substr(-10));-------------&#34;0123456789&#34;<br/>alert(str.substr(-12));-------------&#34;0123456789&#34;<br/>alert(str.substr(0,5));-------------&#34;01234&#34;<br/>alert(str.substr(0,10));------------&#34;0123456789&#34;<br/>alert(str.substr(0,12));------------&#34;0123456789&#34;<br/>alert(str.substr(2,0));-------------&#34;&#34;<br/>alert(str.substr(2,2));-------------&#34;23&#34;<br/>alert(str.substr(2,5));-------------&#34;23456&#34;<br/>alert(str.substr(2,12));------------&#34;23456789&#34;<br/>alert(str.substr(2,-2));------------&#34;&#34;<br/>alert(str.substr(-1,5));------------&#34;01234&#34;<br/>alert(str.substr(-1,-5));-----------&#34;&#34;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>参考文献：<br/><a href="http://www.w3school.com.cn/js/jsref_substring.asp" target="_blank">http://www.w3school.com.cn/js/jsref_substring.asp</a><br/><a href="http://www.w3school.com.cn/js/jsref_substr.asp" target="_blank">http://www.w3school.com.cn/js/jsref_substr.asp</a> <br/><br/>转自：<a href="http://hi.baidu.com/bit5566/blog/item/9edaf84ac738f52b08f7effb.html" target="_blank">http://hi.baidu.com/bit5566/blog/item/9edaf84ac738f52b08f7effb.html</a>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=76" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=76</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[搜索获取MS的剪贴画素材，强！(原)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=4" label="Javascript" /> 
	  <updated>2009-04-11T00:44:23+08:00</updated>
	  <published>2009-04-11T00:44:23+08:00</published>
		  <summary type="html"><![CDATA[Word中插入剪贴画大家都用过吧。<br/><br/>免费下载剪贴画、照片、动画和声音 - Microsoft Office Online 网址：<a target="_blank" href="http://office.microsoft.com/zh-cn/clipart/default.aspx">http://office.microsoft.com/zh-cn/clipart/default.aspx</a><br/><br/>剪贴画有的是Wmf格式的矢量图，可以方便地导入到Flash中。<br/><br/>我们习惯在Word中网络搜索，让剪贴画管理器管理。<br/><br/>剪贴画管理器有优点，可以利用关键词分类，但是文件操作不直观：这些剪贴画素材到底存放在我的电脑哪里？我可以复制它们吗？<br/><br/>为了好好利用这笔网络素材资源，我分析了网页代码，终于还原出了剪贴画的网址，做成这个<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>工具，与大家分享。<br/><br/>使用方法：<br/><br/>1、运行下面的代码，有链接上右击→收藏<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>到“收藏夹”或“链接栏”；<br/><br/>2、打开IE，使用时点击两次本<a href="http://www.wjmhxx.com/Shortway/article.asp?id=8" target="_blank">书签</a>。<br/>第一次，根据你输入的关键词和类型到微软网站上搜索，只要第一页就行，就会获取到所有的结果列表。（如果感兴趣，你可以查看结果页面的源代码。）<br/>第二次点击，自动分析结果列表，还原剪贴画的URL，全部显示出来。<br/><br/>注意：剪贴画还包括声音素材的。为了简便，我没有特殊处理，还是用图片形式显示。这当然是错误的方法，不过你可以右键下载再试听。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp83711">
<a href=&#34;javascript:U='<a href="http://office.microsoft.com/" target="_blank">http://office.microsoft.com/</a>';W=U+'zh-cn/clipart/results.aspx?qu=';D=document;if(D.location.href.substr(0,W.length)!=W){D.location.href=W+encodeURIComponent(prompt('关键词',''))+'&amp;sc='+prompt('类型:全部20;剪贴21;照片22;动画23;声音24','20')}else{A=arrAssetColl;L=A.length;S=L+'个<p>\n';for(I=0;I<L;I++){M=U+'clipart/dglxasset.aspx?AssetID='+A[I]+'0000';S+='<a href='+M+' target=_blank><img src='+M+' border=0 width=88/></a>\n'}document.write(S);}void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;剪贴画&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击两次，第一次搜索剪贴画，再次点击将显示所有的剪贴画。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp83711')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp83711')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>使用效果截屏：<br/><img src="http://www.wjmhxx.com/Shortway/attachments/month_0904/620094111923.jpg" border="0" alt=""/><br/><br/>--------- 20101101更新 ---------<br/>微软改版，咱也升级！<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp23232">
<a href=&#34;javascript:W='<a href="http://office.microsoft.com/" target="_blank">http://office.microsoft.com/</a>';D=document;LC=D.location;if(LC.href.substr(0,W.length)!=W){LC.href=W+'zh-cn/images/results.aspx?qu='+encodeURIComponent(prompt('关键词',''))}else{A=jsonSearchResults.assets;L=A.length;S=L+'个<p>\n';for(I=0;I<L;I++){M='<a href="http://officeimg.vo.msecnd.net/en-us/images/" target="_blank">http://officeimg.vo.msecnd.net/en-us/images/</a>'+A[I].a+'.'+jsonResultsLookup.filetypes[A[I].f].Extension;S+='<a href='+M+' target=_blank><img src='+M+' width=88></a>\n'}document.write(S)}void(0);
&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;剪贴画&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击两次，第一次搜索剪贴画，再次点击将显示所有的剪贴画。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp23232')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp23232')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=75" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=75</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[用批处理禁用/启用服务(原)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=13" label="Bat批处理" /> 
	  <updated>2009-03-30T18:36:19+08:00</updated>
	  <published>2009-03-30T18:36:19+08:00</published>
		  <summary type="html"><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">::用批处理来禁用服务，以MySql服务为例<br/><br/>@ECHO OFF<br/>@ECHO MySql 服务正在禁用...<br/><br/>::先停止服务<br/>@NET STOP MySql&gt;NUL 2&gt;NUL<br/><br/>::再设置启动类型为“已禁用”<br/>@SC CONFIG MySql START= DISABLED&gt;NUL 2&gt;NUL<br/><br/>@ECHO.<br/>@ECHO MySql 服务禁用完成！<br/>@ECHO.<br/>PAUSE<br/><br/>::::::::::::::::::::::::::::::::::::::::::<br/>::用批处理来启用服务<br/><br/>@ECHO OFF<br/>@ECHO MySql 服务正在启用...<br/><br/>::先设置启动类型为“自动”<br/>@SC CONFIG MySql START= AUTO&gt;NUL 2&gt;NUL<br/><br/>::再启动服务<br/>@NET START MySql&gt;NUL 2&gt;NUL<br/><br/>@ECHO.<br/>@ECHO MySql 服务启用完成！<br/>@ECHO.<br/>PAUSE</div></div><br/><br/>注意：<br/>1、启用的顺序为：先设置启动类型为“自动”，再启动服务；<br/>禁用服务的顺序要相反：先停止服务，再设置启动类型为“已禁用”。<br/><br/>2、“START= ”<span style="color:Red">等号后面必须要有一个空格</span>。<br/><br/>3、语句格式：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>SC CONFIG &lt;服务名称&gt; START= &lt;启动类型&gt;<br/><br/><span style="color:Red">注意是“服务名称”，不是显示名称！</span><br/><br/>START 后面的启动类型参数含义：<br/>START= DISABLED 表示禁用<br/>START= DEMAND&nbsp;&nbsp; 表示手动<br/>START= AUTO&nbsp;&nbsp;&nbsp;&nbsp; 表示自动</div></div><br/><br/>4、末尾的“&gt;NUL 2&gt;NUL”是不回显，隐蔽了返回信息。可以去掉。<br/><br/>所以，以前的一篇《<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=58">去除暴风影音的广告.bat</a>》中，禁用暴风影音广告网络服务的方法就是：<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">@NET STOP ccosm&gt;NUL 2&gt;NUL<br/>@SC CONFIG ccosm START= DISABLED&gt;NUL 2&gt;NUL</div></div><br/><br/>参考网址：<br/>1、<a href="http://www.sgoon.net/MINI/Default.asp?5-14592-0-0-0-0-0-a-.htm" target="_blank">http://www.sgoon.net/MINI/Default.asp?5-14592-0-0-0-0-0-a-.htm</a><br/>2、<a href="http://hi.baidu.com/maxdao/blog/item/0cb9fdfa6948b0dfb48f31ae.html" target="_blank">http://hi.baidu.com/maxdao/blog/item/0cb9fdfa6948b0dfb48f31ae.html</a><br/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=74" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=74</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[最新小书签 bookmarklet(原)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=4" label="Javascript" /> 
	  <updated>2009-02-04T15:54:47+08:00</updated>
	  <published>2009-02-04T15:54:47+08:00</published>
		  <summary type="html"><![CDATA[1、<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=60">Flv下载地址嗅探</a><br/><br/>2、<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=53">英语划词翻译</a><br/><br/>3、打开多页：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp72220">
<a href=&#34;javascript:U=location.href;D=U.lastIndexOf('.');L=U.substr(0,D);R=U.substr(D,99);C=prompt('多少页？',0);S='<iframe src='+U+'? width=33% height=500></iframe>';for(i=1;i<C;i++)S+='<iframe src='+L+'_'+i+R+' width=33% height=500></iframe>';document.write('<center>'+S+'</center>');void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;打开多页&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以实现打开多页。</a><p>
然后你点开这一页试试：<a href=&#34;<a href="http://tech.qq.com/a/20090203/000126.htm" target="_blank">http://tech.qq.com/a/20090203/000126.htm</a>&#34; target=&#34;_blank&#34;><a href="http://tech.qq.com/a/20090203/000126.htm" target="_blank">http://tech.qq.com/a/20090203/000126.htm</a></a>
</TEXTAREA><br/><INPUT onclick="runEx('temp72220')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp72220')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>4、QQ临时会话窗口，跟陌生人也可以交谈：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp54466">
<a href=&#34;javascript:location='tencent://Message/?uin='+prompt('QQ:','');void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;QQ临时会话&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以实现QQ临时会话。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp54466')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp54466')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>上面这个版本只能用一次，下面修改版<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp81170">
<a href=&#34;javascript:D=document;S=D.body.appendChild(D.cr&#101;ateElement('iframe'));S.id='Q';S.style.display='none';document.frames['Q'].location = 'tencent://Message/?websiteName=qzone.qq.com&amp;Menu=yes&amp;Uin='+prompt('QQ:','');void(0);&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;QQ临时会话&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以实现QQ临时会话。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp81170')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp81170')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>5、得到页面Cookie：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp1060">
<a href=&#34;javascript:alert(document.cookie);void(window.clipboardData.setData('Text',document.cookie));&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;GetCookie&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以复制到当前页面的Cookie。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp1060')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp1060')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>6、得到页面最后生成的源代码：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp67948">
<a href=&#34;javascript:void(window.clipboardData.setData('Text',document.getElementsByTagName('html')[0].innerHTML));&#34; onclick=&#34;javascript:alert('请右击本链接→添加到收藏夹→链接栏中');return(false)&#34; title=&#34;GetResource&#34;>将这里的链接添加到收藏夹→链接栏中，使用时点击一下，就可以复制到当前页面最后生成的源代码。</a>
</TEXTAREA><br/><INPUT onclick="runEx('temp67948')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp67948')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=73" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=73</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[旋转方块过关密码修改版(原)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=8" label="媒体" /> 
	  <updated>2009-02-01T01:06:00+08:00</updated>
	  <published>2009-02-01T01:06:00+08:00</published>
		  <summary type="html"><![CDATA[看过我的这篇《<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=64">修改flash</a>》，你该知道怎么修改Flash吧。<br/><br/>抽空给儿子改了这个Flash游戏《旋转方块》。(又找了个汉化版的，在这个基础上改的)<br/><br/>密码很简单了。第一关：010000；第二关：020000；……第十关：100000；……最后一关三十三关：330000。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/flash.gif" alt="" style="margin:0px 2px -3px 0px" border="0"/>Flash动画</div><div class="UBBContent"><a id="temp97690_href" href="http://www.wjmhxx.com/Shortway/javascript:MediaShow('swf','temp97690','http://www.wjmhxx.com/Shortway/attachments/month_0902/ha_bloxorz.swf','550','320')"><img name="temp97690_img" src="http://www.wjmhxx.com/Shortway/images/mm_snd.gif" style="margin:0px 3px -2px 0px" border="0" alt=""/><span id="temp97690_text">在线播放</span></a><div id="temp97690"></div></div></div><br/>下载地址：<a href="http://www.wjmhxx.com/Shortway/attachments/month_0902/ha_bloxorz.swf" target="_blank">http://www.wjmhxx.com/Shortway/attachments/month_0902/ha_bloxorz.swf</a>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=72" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=72</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[提取txt文件第一行作为文件名.VBS(原)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=13" label="Bat批处理" /> 
	  <updated>2009-01-31T11:31:46+08:00</updated>
	  <published>2009-01-31T11:31:46+08:00</published>
		  <summary type="html"><![CDATA[问题：<a href="http://iask.sina.com.cn/b/14430201.html" target="_blank">http://iask.sina.com.cn/b/14430201.html</a><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>我有100多本文件名为数字的小说 txt格式，文件正文第一行是 四个空格+[标题 书名] <br/>急求批处理命令，一次修改文件名为正文第一行文字 <br/></div></div><br/>分析：bat实在困难因为还有些字符是不能作为文件名的，比如冒号，斜杠等。可以考虑用vbs。<br/><br/>解决：<a href="http://iask.sina.com.cn/b/14471906.html" target="_blank">http://iask.sina.com.cn/b/14471906.html</a><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&#39;bat对文件的读写、判断等操作极弱，所以推荐VBS。 <br/>&#39;使用也很简单：记事本输入→保存到目标文件夹，命名为“RenameText.vbs”文件→双击运行。 <br/><br/>----代码开始----- <br/>Option Explicit <br/>On Error Resume Next &#39; 容错语句，避免程序崩溃 &#39;有可能重命名文件已经存在，忽略错误。 <br/><br/>Dim fso,fs,f <br/>Dim i <br/>Dim strNewName <br/>Const strCurrentPath = &#34;.&#34; &#39;当前目录 <br/><br/>Msgbox &#34;根据文本文件第一行批量重命名的VBS程序&#34; &amp; vbcrlf &amp; vbcrlf &amp; &#34;Cr&#101;ated By Shortway&#34;,0,&#34;QQ:380710203&#34; <br/><br/>Set fso = Wscript.Cr&#101;ateObject(&#34;Scripting.FileSystemObject&#34;) <br/>Set fs = fso.GetFolder(strCurrentPath).Files <br/>i = 0 <br/>For Each f In fs &#39;遍历当前文件夹内每个文件 <br/>If LCase(right(f.name,3))=&#34;txt&#34; Then &#39;判断是否是文本文件 <br/>strNewName = Trim(fso.OpenTextFile(f, 1, False).ReadLine) &#39;得到第一行 <br/><br/>&#39;以下剔除不能作文件名的特殊字符 <br/>strNewName = Replace(strNewName, &#34;\&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;/&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;:&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;*&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;?&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;&#34;&#34;&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;&gt;&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;&lt;&#34;, &#34;&#34;) <br/>strNewName = Replace(strNewName, &#34;|&#34;, &#34;&#34;) <br/><br/>strNewName = left(strNewName,30) &#39;有时第一行文字太多了，就选30个字符了 <br/><br/>f.name=strNewName &amp; &#34;.txt&#34; <br/>i = i + 1 <br/>End if <br/>Next <br/>Msgbox i &amp; &#34;个文件改名完成！（忽略重名）&#34; <br/>Set fs = Nothing <br/>Set fso = Nothing <br/></div></div><br/><br/>下载：<a target="_blank" href="http://iask.sina.com.cn/browse/download.php?path=/22/69/74/1071226974.14471906.vbs&amp;filename=RenameText.vbs">http://iask.sina.com.cn/browse/download.php?path=/22/69/74/1071226974.14471906.vbs&amp;filename=RenameText.vbs</a>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=71" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=71</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[QQ自动登录批处理生成器多用户版.vbs(转)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=13" label="Bat批处理" /> 
	  <updated>2009-01-31T10:30:33+08:00</updated>
	  <published>2009-01-31T10:30:33+08:00</published>
		  <summary type="html"><![CDATA[来自：<a href="http://www.yongfa365.com/item/QQAutoLoginCr" target="_blank">http://www.yongfa365.com/item/QQAutoLoginCr</a>&#101;ates.vbs.html&nbsp;&nbsp;<br/>略有改动。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.wjmhxx.com/Shortway/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&#39;/*=========================================================================<br/>&#39; * Intro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QQ自动登录生成器多用户版，支持参数生成<br/>&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 参数使用方法：QQAutoLoginCr&#101;ates.vbs &#34;QQ路径,安装版QQ可以删除当前引号内的内容&#34; &#34;QQ1&#34; &#34;QQ1的密码&#34; &#34;QQ2&#34; &#34;QQ2的密码&#34;<br/>&#39; * FileName&nbsp;&nbsp;&nbsp;&nbsp;QQAutoLoginCr&#101;ates.vbs<br/>&#39; * Author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yongfa365<br/>&#39; * Version&nbsp;&nbsp;&nbsp;&nbsp; v1.0<br/>&#39; * WEB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.yongfa365.com" target="_blank">http://www.yongfa365.com</a><br/>&#39; * Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yongfa365[at]qq.com<br/>&#39; * FirstWrite&nbsp;&nbsp;<a href="http://www.yongfa365.com/Item/QQAutoLoginCr" target="_blank">http://www.yongfa365.com/Item/QQAutoLoginCr</a>&#101;ates.vbs.html<br/>&#39; * MadeTime&nbsp;&nbsp;&nbsp;&nbsp;2007-12-23 20:29:06<br/>&#39; * LastModify&nbsp;&nbsp;2007-12-23 20:29:06<br/>&#39; *==========================================================================*/<br/><br/>Private Const BITS_TO_A_BYTE = 8<br/>Private Const BYTES_TO_A_WORD = 4<br/>Private Const BITS_TO_A_WORD = 32<br/><br/>Private m_lOnBits(30)<br/>Private m_l2Power(30)<br/><br/>Private Function LShift(lValue, iShiftBits)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If iShiftBits = 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = lValue<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits = 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If lValue And 1 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits &lt; 0 o&#114; iShiftBits &gt; 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Raise 6<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;If (lValue And m_l2Power(31 - iShiftBits)) Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = ((lValue And m_lOnBits(31 - (iShiftBits + 1))) * m_l2Power(iShiftBits)) o&#114; &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LShift = ((lValue And m_lOnBits(31 - iShiftBits)) * m_l2Power(iShiftBits))<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/><br/>Private Function RShift(lValue, iShiftBits)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If iShiftBits = 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = lValue<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits = 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If lValue And &amp;H80000000 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = 1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf iShiftBits &lt; 0 o&#114; iShiftBits &gt; 31 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Raise 6<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;RShift = (lValue And &amp;H7FFFFFFE) \ m_l2Power(iShiftBits)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;If (lValue And &amp;H80000000) Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RShift = (RShift o&#114; (&amp;H40000000 \ m_l2Power(iShiftBits - 1)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/><br/>Private Function RotateLeft(lValue, iShiftBits)<br/>&nbsp;&nbsp;&nbsp;&nbsp;RotateLeft = LShift(lValue, iShiftBits) o&#114; RShift(lValue, (32 - iShiftBits))<br/>End Function<br/><br/>Private Function AddUnsigned(lX, lY)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lX4<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lY4<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lX8<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lResult<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lX8 = lX And &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;lY8 = lY And &amp;H80000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;lX4 = lX And &amp;H40000000<br/>&nbsp;&nbsp;&nbsp;&nbsp;lY4 = lY And &amp;H40000000<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lResult = (lX And &amp;H3FFFFFFF) + (lY And &amp;H3FFFFFFF)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;If lX4 And lY4 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor &amp;H80000000 Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;ElseIf lX4 o&#114; lY4 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If lResult And &amp;H40000000 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor &amp;HC0000000 Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor &amp;H40000000 Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lResult = lResult Xor lX8 Xor lY8<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;AddUnsigned = lResult<br/>End Function<br/><br/>Private Function md5_F(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_F = (x And y) o&#114; ((Not x) And z)<br/>End Function<br/><br/>Private Function md5_G(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_G = (x And z) o&#114; (y And (Not z))<br/>End Function<br/><br/>Private Function md5_H(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_H = (x Xor y Xor z)<br/>End Function<br/><br/>Private Function md5_I(x, y, z)<br/>&nbsp;&nbsp;&nbsp;&nbsp;md5_I = (y Xor (x o&#114; (Not z)))<br/>End Function<br/><br/>Private Sub md5_FF(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_F(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Sub md5_GG(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_G(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Sub md5_HH(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_H(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Sub md5_II(a, b, c, d, x, s, ac)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AddUnsigned(AddUnsigned(md5_I(b, c, d), x), ac))<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = RotateLeft(a, s)<br/>&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, b)<br/>End Sub<br/><br/>Private Function ConvertToWordArray(sMessage)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lMessageLength<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lNumberOfWords<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lWordArray()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lBytePosition<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lByteCount<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lWordCount<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Const MODULUS_BITS = 512<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const CONGRUENT_BITS = 448<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lMessageLength = Len(sMessage)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lNumberOfWords = (((lMessageLength + ((MODULUS_BITS - CONGRUENT_BITS) \ BITS_TO_A_BYTE)) \ (MODULUS_BITS \ BITS_TO_A_BYTE)) + 1) * (MODULUS_BITS \ BITS_TO_A_WORD)<br/>&nbsp;&nbsp;&nbsp;&nbsp;ReDim lWordArray(lNumberOfWords - 1)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lBytePosition = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;lByteCount = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;Do Until lByteCount &gt;= lMessageLength<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lWordCount = lByteCount \ BYTES_TO_A_WORD<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lWordCount) = lWordArray(lWordCount) o&#114; LShift(Asc(Mid(sMessage, lByteCount + 1, 1)), lBytePosition)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lByteCount = lByteCount + 1<br/>&nbsp;&nbsp;&nbsp;&nbsp;Loop<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordCount = lByteCount \ BYTES_TO_A_WORD<br/>&nbsp;&nbsp;&nbsp;&nbsp;lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lWordCount) = lWordArray(lWordCount) o&#114; LShift(&amp;H80, lBytePosition)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lNumberOfWords - 2) = LShift(lMessageLength, 3)<br/>&nbsp;&nbsp;&nbsp;&nbsp;lWordArray(lNumberOfWords - 1) = RShift(lMessageLength, 29)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;ConvertToWordArray = lWordArray<br/>End Function<br/><br/>Private Function WordToHex(lValue)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lByte<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim lCount<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;For lCount = 0 To 3<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lByte = RShift(lValue, lCount * BITS_TO_A_BYTE) And m_lOnBits(BITS_TO_A_BYTE - 1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WordToHex = WordToHex &amp; Right(&#34;0&#34; &amp; Hex(lByte), 2)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br/>End Function<br/><br/>Public Function MD5(sMessage)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(0) = CLng(1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(1) = CLng(3)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(2) = CLng(7)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(3) = CLng(15)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(4) = CLng(31)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(5) = CLng(63)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(6) = CLng(127)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(7) = CLng(255)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(8) = CLng(511)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(9) = CLng(1023)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(10) = CLng(2047)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(11) = CLng(4095)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(12) = CLng(8191)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(13) = CLng(16383)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(14) = CLng(32767)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(15) = CLng(65535)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(16) = CLng(131071)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(17) = CLng(262143)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(18) = CLng(524287)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(19) = CLng(1048575)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(20) = CLng(2097151)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(21) = CLng(4194303)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(22) = CLng(8388607)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(23) = CLng(16777215)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(24) = CLng(33554431)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(25) = CLng(67108863)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(26) = CLng(134217727)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(27) = CLng(268435455)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(28) = CLng(536870911)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(29) = CLng(1073741823)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_lOnBits(30) = CLng(2147483647)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(0) = CLng(1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(1) = CLng(2)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(2) = CLng(4)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(3) = CLng(8)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(4) = CLng(16)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(5) = CLng(32)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(6) = CLng(64)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(7) = CLng(128)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(8) = CLng(256)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(9) = CLng(512)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(10) = CLng(1024)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(11) = CLng(2048)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(12) = CLng(4096)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(13) = CLng(8192)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(14) = CLng(16384)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(15) = CLng(32768)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(16) = CLng(65536)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(17) = CLng(131072)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(18) = CLng(262144)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(19) = CLng(524288)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(20) = CLng(1048576)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(21) = CLng(2097152)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(22) = CLng(4194304)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(23) = CLng(8388608)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(24) = CLng(16777216)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(25) = CLng(33554432)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(26) = CLng(67108864)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(27) = CLng(134217728)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(28) = CLng(268435456)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(29) = CLng(536870912)<br/>&nbsp;&nbsp;&nbsp;&nbsp;m_l2Power(30) = CLng(1073741824)<br/><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim x<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim k<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim AA<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim CC<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim DD<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim a<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim b<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim c<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim d<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S11 = 7<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S12 = 12<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S13 = 17<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S14 = 22<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S21 = 5<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S22 = 9<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S23 = 14<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S24 = 20<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S31 = 4<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S32 = 11<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S33 = 16<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S34 = 23<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S41 = 6<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S42 = 10<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S43 = 15<br/>&nbsp;&nbsp;&nbsp;&nbsp;Const S44 = 21<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;x = ConvertToWordArray(sMessage)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;a = &amp;H67452301<br/>&nbsp;&nbsp;&nbsp;&nbsp;b = &amp;HEFCDAB89<br/>&nbsp;&nbsp;&nbsp;&nbsp;c = &amp;H98BADCFE<br/>&nbsp;&nbsp;&nbsp;&nbsp;d = &amp;H10325476<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;For k = 0 To UBound(x) Step 16<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AA = a<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BB = b<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CC = c<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DD = d<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 0), S11, &amp;HD76AA478<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 1), S12, &amp;HE8C7B756<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 2), S13, &amp;H242070DB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 3), S14, &amp;HC1BDCEEE<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 4), S11, &amp;HF57C0FAF<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 5), S12, &amp;H4787C62A<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 6), S13, &amp;HA8304613<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 7), S14, &amp;HFD469501<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 8), S11, &amp;H698098D8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 9), S12, &amp;H8B44F7AF<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 10), S13, &amp;HFFFF5BB1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 11), S14, &amp;H895CD7BE<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF a, b, c, d, x(k + 12), S11, &amp;H6B901122<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF d, a, b, c, x(k + 13), S12, &amp;HFD987193<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF c, d, a, b, x(k + 14), S13, &amp;HA679438E<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_FF b, c, d, a, x(k + 15), S14, &amp;H49B40821<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 1), S21, &amp;HF61E2562<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 6), S22, &amp;HC040B340<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 11), S23, &amp;H265E5A51<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 0), S24, &amp;HE9B6C7AA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 5), S21, &amp;HD62F105D<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 10), S22, &amp;H2441453<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 15), S23, &amp;HD8A1E681<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 4), S24, &amp;HE7D3FBC8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 9), S21, &amp;H21E1CDE6<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 14), S22, &amp;HC33707D6<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 3), S23, &amp;HF4D50D87<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 8), S24, &amp;H455A14ED<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG a, b, c, d, x(k + 13), S21, &amp;HA9E3E905<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG d, a, b, c, x(k + 2), S22, &amp;HFCEFA3F8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG c, d, a, b, x(k + 7), S23, &amp;H676F02D9<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_GG b, c, d, a, x(k + 12), S24, &amp;H8D2A4C8A<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 5), S31, &amp;HFFFA3942<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 8), S32, &amp;H8771F681<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 11), S33, &amp;H6D9D6122<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 14), S34, &amp;HFDE5380C<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 1), S31, &amp;HA4BEEA44<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 4), S32, &amp;H4BDECFA9<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 7), S33, &amp;HF6BB4B60<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 10), S34, &amp;HBEBFBC70<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 13), S31, &amp;H289B7EC6<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 0), S32, &amp;HEAA127FA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 3), S33, &amp;HD4EF3085<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 6), S34, &amp;H4881D05<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH a, b, c, d, x(k + 9), S31, &amp;HD9D4D039<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH d, a, b, c, x(k + 12), S32, &amp;HE6DB99E5<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH c, d, a, b, x(k + 15), S33, &amp;H1FA27CF8<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_HH b, c, d, a, x(k + 2), S34, &amp;HC4AC5665<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 0), S41, &amp;HF4292244<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 7), S42, &amp;H432AFF97<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 14), S43, &amp;HAB9423A7<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 5), S44, &amp;HFC93A039<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 12), S41, &amp;H655B59C3<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 3), S42, &amp;H8F0CCC92<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 10), S43, &amp;HFFEFF47D<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 1), S44, &amp;H85845DD1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 8), S41, &amp;H6FA87E4F<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 15), S42, &amp;HFE2CE6E0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 6), S43, &amp;HA3014314<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 13), S44, &amp;H4E0811A1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II a, b, c, d, x(k + 4), S41, &amp;HF7537E82<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II d, a, b, c, x(k + 11), S42, &amp;HBD3AF235<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II c, d, a, b, x(k + 2), S43, &amp;H2AD7D2BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;md5_II b, c, d, a, x(k + 9), S44, &amp;HEB86D391<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a = AddUnsigned(a, AA)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b = AddUnsigned(b, BB)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c = AddUnsigned(c, CC)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;d = AddUnsigned(d, DD)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;MD5 = LCase(WordToHex(a) &amp; WordToHex(b) &amp; WordToHex(c) &amp; WordToHex(d))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#39;MD5=LCase(WordToHex(b) &amp; WordToHex(c))&nbsp;&nbsp;&#39;这儿是取16位的密码,如果是32位的话,把a和d加上就行了.<br/>End Function<br/><br/>&#39;base64 编码前要将十六进制字符转换为Byte<br/><br/>Function PSSHASH(QQPass)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set xml_dom = Cr&#101;ateObject(&#34;MSXML2.DOMDocument&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;xml_dom.loadXML &#34;&lt;?xml Version=&#34;&#34;1.0&#34;&#34;?&gt;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set phex = xml_dom.cr&#101;ateElement(&#34;Hex&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;phex.dataType = &#34;bin.Hex&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;phex.Text = md5(QQPass)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set pbase = xml_dom.cr&#101;ateElement(&#34;base&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;pbase.dataType = &#34;bin.base64&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;pbase.nodeTypedvalue = phex.nodeTypedvalue<br/>&nbsp;&nbsp;&nbsp;&nbsp;PSSHASH = pbase.text<br/>End Function<br/><br/>&#39;创建文件<br/><br/>Function Cr&#101;ateFile(FileName, Content)<br/>&nbsp;&nbsp;&nbsp;&nbsp;On Error Resume Next<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set FSO = Cr&#101;ateObject(&#34;Scripting.FileSystemObject&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set fd = FSO.Cr&#101;ateTextFile(FileName, True)<br/>&nbsp;&nbsp;&nbsp;&nbsp;fd.WriteLine Content<br/>&nbsp;&nbsp;&nbsp;&nbsp;If Err&gt;0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Clear<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cr&#101;ateFile = False<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cr&#101;ateFile = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/><br/>&#39;正则表达式替换<br/><br/>Function reReplace(Str, restrS, restrD)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set re = New RegExp<br/>&nbsp;&nbsp;&nbsp;&nbsp;re.IgnoreCase = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;re.Global = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;re.Pattern = restrS<br/>&nbsp;&nbsp;&nbsp;&nbsp;reReplace = re.Replace(Str, restrD)<br/>End Function<br/><br/>&#39;生成QQ自动登陆器<br/>&#39;执行过程是，先看看是不是通过参数传来的，如果没有参数的话就提示输入各种QQ信息，最后生成一个自动登录批处理文件<br/>Dim QQUserPass<br/>Dim QQUser<br/>Dim QQPass<br/>Dim QQPath<br/>Dim QQAuto<br/>Set objArgs = WScript.Arguments<br/>If objArgs.Count&lt;3 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPath = InputBox(&#34;安装版QQ不用输入，直接点确定&#34; &amp; vbCrLf &amp;&#34;绿色版QQ(未改注册表)请输入QQ程序路径：&#34;, &#34;1/2 QQ自动登陆生成器&#34;, &#34;&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQUserPass = InputBox(&#34;请输入QQ号及密码，格式为：&#34;&amp;vbCrLf&amp;&#34;QQ1 QQ1的密码 QQ2 QQ2的密码&#34;, &#34;2/2 QQ自动登陆生成器&#34;, &#34;&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If QQUserPass = &#34;&#34; Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WScript.Echo &#34;QQ号及密码为空，点确定退出程序&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WScript.Quit<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPath = objArgs(0)<br/>&nbsp;&nbsp;&nbsp;&nbsp;For i = 1 To objArgs.Count -1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QQUserPass = QQUserPass &amp; &#34; &#34; &amp; objArgs(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br/>End If<br/><br/><br/>If QQPath = &#34;&#34; Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim OperationRegistry<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set OperationRegistry = WScript.Cr&#101;ateObject(&#34;WScript.Shell&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPath = OperationRegistry.RegRead(&#34;HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\PLATFORM_TYPE_LIST\1\TypePath&#34;)<br/>End If<br/>PathTemp = Split(QQPath, &#34;\&#34;)<br/>&#39;格式化输入，比如前后空格，多个空格<br/>QQUserPass = reReplace(Trim(QQUserPass), &#34; +&#34;, &#34; &#34;)<br/>QQUserPass = Split(QQUserPass, &#34; &#34;)<br/><br/><br/>&#39;生成自动登录文件<br/>QQAuto = &#34;@ECHO OFF&#34; &amp; vbCrLf<br/>QQAuto = QQAuto &amp; PathTemp(0) &amp; vbCrLf<br/>QQAuto = QQAuto &amp; &#34;CD &#34;&#34;&#34; &amp; Left(QQPath, Len(QQPath) - Len(PathTemp(UBound(PathTemp)))) &amp; &#34;&#34;&#34;&#34; &amp; vbCrLf<br/>QQUsers = &#34;&#34;<br/>For i = 0 To UBound(QQUserPass) step 2<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQUser = QQUserPass(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPass = QQUserPass(i + 1)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;QQUsers = QQUsers &amp; &#34;-&#34; &amp; QQUser<br/>&nbsp;&nbsp;&nbsp;&nbsp;QQPass = PSSHASH(QQPass)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;QQAuto = QQAuto &amp; &#34;START &#34; &amp; PathTemp(UBound(PathTemp)) &amp; &#34; /START QQUIN:&#34; &amp; QQUser &amp; &#34; PWDHASH:&#34; &amp; QQPass &amp; &#34; /STAT:40&#34; &amp; vbCrLf &#39;/STAT:40可以换成41，40是隐身，41是正常<br/>Next<br/><br/>QQAuto = QQAuto &amp; &#34;REM 说明：/STAT:40可以换成41，40是隐身，41是正常&#34; &amp; vbCrLf<br/><br/>&#39;QQAuto = QQAuto &amp; &#34;QUIT&#34;<br/>&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;上面的QUIT无效命令，屏蔽之——Modified by Shortway<br/>QQUsers = Right(QQUsers, Len(QQUsers) -1)<br/>Cr&#101;ateFile QQUsers &amp; &#34;自动登录.bat&#34;, QQAuto<br/>WScript.Echo &#34;生成完毕!您可以用&#34;&#34;&#34; &amp; QQUsers &amp; &#34;自动登录.bat&#34; &amp; &#34;&#34;&#34;登陆&#34;<br/></div></div><br/><br/>将以上代码保存成.VBS文件，运行后按照提示输入。可以实现多个QQ成批自动登录。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=70" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=70</id> 
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[FLV视频播放器(整理)]]></title>
	  <author>
		 <name>Shortway</name>
		 <uri>http://www.wjmhxx.com/Shortway/</uri>
		 <email>shortway@sina.com</email>
	  </author>
	  <category term="" scheme="http://www.wjmhxx.com/Shortway/default.asp?cateID=8" label="媒体" /> 
	  <updated>2008-09-20T14:05:13+08:00</updated>
	  <published>2008-09-20T14:05:13+08:00</published>
		  <summary type="html"><![CDATA[参考网上的资料，做了一个在线视频播放器。静态htm，通过获取URL参数，DOM生成播放。<br/><br/>非原创，仅整理！<br/><br/>测试：<br/><br/><strong>ipod + band = iband</strong><br/><a target="_blank" href="http://www.wjmhxx.com/Shortway/Tools/FlvPlayer/flvplayer.htm?&lt;a href="http://vs1.zol.com.cn/flv/20/3ddc6da0.flv" target="_blank"&gt;http://vs1.zol.com.cn/flv/20/3ddc6da0.flv&lt;/a&gt;||技巧高超iPhone电子乐队iBand演奏视频">技巧高超——iPhone电子乐队iBand演奏视频</a><br/><br/>flv地址的获取，请参考：<a target="_blank" href="http://www.wjmhxx.com/Shortway/article.asp?id=60">flv 下载与转换</a>一文。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.wjmhxx.com/Shortway/default.asp?id=69" /> 
	  <id>http://www.wjmhxx.com/Shortway/default.asp?id=69</id> 
  </entry>	
		
</feed>
