﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-Clark Chan</title><link>http://www.cnblogs.com/ClarkChan/</link><description> </description><language>zh-cn</language><lastBuildDate>Sun, 07 Sep 2008 04:55:17 GMT</lastBuildDate><pubDate>Sun, 07 Sep 2008 04:55:17 GMT</pubDate><ttl>60</ttl><item><title>C#-计算相对路径</title><link>http://www.cnblogs.com/ClarkChan/archive/2008/07/20/1247134.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sun, 20 Jul 2008 09:54:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/07/20/1247134.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1247134.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/07/20/1247134.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1247134.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1247134.html</trackback:ping><description><![CDATA[C#-计算相对路径<BR><BR><BR>
<DIV class=cnblogs_code><IMG id=Codehighlighter1_3_401_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_3_401_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_3_401_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_3_401_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_3_401_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_3_401_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_3_401_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_3_401_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_3_401_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_3_401_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;计算相对路径<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;后者相对前者的路径。<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;param&nbsp;name="mainDir"&gt;</SPAN><SPAN style="COLOR: #008000">主目录</SPAN><SPAN style="COLOR: #808080">&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;param&nbsp;name="fullFilePath"&gt;</SPAN><SPAN style="COLOR: #008000">文件的绝对路径</SPAN><SPAN style="COLOR: #808080">&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;returns&gt;</SPAN><SPAN style="COLOR: #008000">fullFilePath相对于mainDir的路径</SPAN><SPAN style="COLOR: #808080">&lt;/returns&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;example&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;@"..\..\regedit.exe"&nbsp;=&nbsp;GetRelativePath(@"D:\Windows\Web\Wallpaper\",&nbsp;@"D:\Windows\regedit.exe"&nbsp;);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/example&gt;</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;GetRelativePath(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;mainDir,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;fullFilePath)<BR><IMG id=Codehighlighter1_491_1386_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_491_1386_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_491_1386_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_491_1386_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_491_1386_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_491_1386_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_491_1386_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_491_1386_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_491_1386_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_491_1386_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #000000">mainDir.EndsWith(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">))<BR><IMG id=Codehighlighter1_548_599_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_548_599_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_548_599_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_548_599_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_548_599_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_548_599_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_548_599_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_548_599_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_548_599_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_548_599_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mainDir&nbsp;</SPAN><SPAN style="COLOR: #000000">+=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;intIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">,&nbsp;intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;mainDir.IndexOf(</SPAN><SPAN style="COLOR: #800000">'</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">'</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">&nbsp;(intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_721_946_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_721_946_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_721_946_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_721_946_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_721_946_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_721_946_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_721_946_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_721_946_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_721_946_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_721_946_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intPos</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">.Compare(mainDir,&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">,&nbsp;fullFilePath,&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">,&nbsp;intPos,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">break</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;intPos;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;mainDir.IndexOf(</SPAN><SPAN style="COLOR: #800000">'</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">'</SPAN><SPAN style="COLOR: #000000">,&nbsp;intPos);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(intIndex&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_993_1331_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_993_1331_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_993_1331_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_993_1331_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_993_1331_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_993_1331_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_993_1331_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_993_1331_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_993_1331_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_993_1331_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fullFilePath&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;fullFilePath.Substring(intIndex);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;mainDir.IndexOf(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;intIndex);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">&nbsp;(intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_1172_1317_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1172_1317_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1172_1317_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1172_1317_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1172_1317_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1172_1317_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1172_1317_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1172_1317_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_1172_1317_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1172_1317_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fullFilePath&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">..\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;fullFilePath;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;mainDir.IndexOf(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">,&nbsp;intPos&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;fullFilePath;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR><BR></SPAN></SPAN><BR></DIV><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1247134.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42132/" target="_blank">[新闻]Google 10周岁生日</a>]]></description></item><item><title>【原创源码】(05)：C#-计算绝对路径。 </title><link>http://www.cnblogs.com/ClarkChan/archive/2008/07/20/1247115.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sun, 20 Jul 2008 09:23:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/07/20/1247115.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1247115.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/07/20/1247115.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1247115.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1247115.html</trackback:ping><description><![CDATA[【原创源码】(05)：C#-计算绝对路径。 <BR><BR><FONT color=#0000ff>欢迎大家发表意见（漏洞，性能等）。</FONT><FONT color=#000000>在博客园社区以外</FONT><FONT color=#ff0000>转载<FONT color=#000000>，</FONT>请注明作者和出处。谢谢</FONT>！<BR>
<DIV class=cnblogs_code><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;<BR><IMG id=Codehighlighter1_10_362_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_10_362_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_10_362_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_10_362_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_10_362_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_10_362_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_10_362_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_10_362_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_10_362_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_10_362_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;计算绝对路径<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/summary&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;param&nbsp;name="absoluteDir"&gt;</SPAN><SPAN style="COLOR: #008000">绝对目录</SPAN><SPAN style="COLOR: #808080">&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;param&nbsp;name="relativeFile"&gt;</SPAN><SPAN style="COLOR: #008000">相对文件</SPAN><SPAN style="COLOR: #808080">&lt;/param&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;returns&gt;&lt;/returns&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;example&gt;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;@"D:\Windows\regedit.exe"&nbsp;=&nbsp;GetAbsolutePath(@"D:\Windows\Web\Wallpaper\",&nbsp;@"..\..\regedit.exe"&nbsp;);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000">&nbsp;</SPAN><SPAN style="COLOR: #808080">&lt;/example&gt;</SPAN><SPAN style="COLOR: #808080"></SPAN></SPAN><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;GetAbsolutePath(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;absoluteDir,&nbsp;</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">&nbsp;relativeFile)<BR><IMG id=Codehighlighter1_456_1328_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_456_1328_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_456_1328_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_456_1328_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_456_1328_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_456_1328_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_456_1328_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_456_1328_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_456_1328_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_456_1328_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">bool</SPAN><SPAN style="COLOR: #000000">&nbsp;isNotOver&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;intStart&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">&nbsp;(isNotOver)<BR><IMG id=Codehighlighter1_565_860_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_565_860_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_565_860_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_565_860_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_565_860_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_565_860_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_565_860_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_565_860_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_565_860_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_565_860_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(relativeFile.StartsWith(</SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">..\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">))<BR><IMG id=Codehighlighter1_637_750_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_637_750_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_637_750_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_637_750_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_637_750_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_637_750_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_637_750_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_637_750_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_637_750_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_637_750_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;relativeFile&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;relativeFile.Remove(</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">,&nbsp;</SPAN><SPAN style="COLOR: #800080">3</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intStart</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_788_846_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_788_846_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_788_846_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_788_846_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_788_846_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_788_846_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_788_846_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_788_846_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_788_846_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_788_846_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isNotOver&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(intStart&nbsp;</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_904_1258_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_904_1258_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_904_1258_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_904_1258_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_904_1258_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_904_1258_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_904_1258_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_904_1258_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_904_1258_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_904_1258_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(absoluteDir.EndsWith(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">))<BR><IMG id=Codehighlighter1_972_1069_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_972_1069_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_972_1069_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_972_1069_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_972_1069_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_972_1069_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_972_1069_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_972_1069_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_972_1069_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_972_1069_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;absoluteDir&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;absoluteDir.Remove(absoluteDir.Length&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;i&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">;&nbsp;i&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">&nbsp;intStart;&nbsp;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_1138_1244_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1138_1244_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1138_1244_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1138_1244_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1138_1244_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1138_1244_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1138_1244_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1138_1244_Open_Text').style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_1138_1244_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1138_1244_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;absoluteDir&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;absoluteDir.Remove(absoluteDir.LastIndexOf(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">));<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000">&nbsp;Path.Combine(absoluteDir,&nbsp;relativeFile);<BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;<BR>
<DIV class=cnblogs_code><SPAN id=Codehighlighter1_491_1386_Open_Text><SPAN style="COLOR: #000000"><BR><BR><BR><BR><BR><BR><BR><BR>下面这个方法效率是楼上的1/50。。。<IMG height=1 src="/WebResource.axd?d=pLXXeGbWF7eXU8SMs2-GFZvUWY2JNH05dFx5YzJhGUYAYJAFEaTEq36NAhTPy7_KekvzDFwt8wvQWdByvJIGWdEq6x2KpKD80&amp;t=633043282340000000" width=1><BR>public static string GetAbsolutePath(string dir, string path) <BR>{ <BR>string strDir = Directory.GetCurrentDirectory(); <BR>Directory.SetCurrentDirectory(dir); <BR>string strNew = Path.GetFullPath(path); <BR>Directory.SetCurrentDirectory(strDir); <BR>return strNew; <BR>} <BR><IMG height=106 alt=80720.jpg src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/8720/80720.jpg" width=636 border=0></SPAN></SPAN></DIV></SPAN></DIV><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1247115.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42132/" target="_blank">[新闻]Google 10周岁生日</a>]]></description></item><item><title>Windows Vista 睡眠后鼠标死机几分钟</title><link>http://www.cnblogs.com/ClarkChan/archive/2008/06/01/1211654.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sun, 01 Jun 2008 09:44:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/06/01/1211654.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1211654.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/06/01/1211654.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1211654.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1211654.html</trackback:ping><description><![CDATA[<FONT color=#008000><STRONG>Windows&nbsp;Vista </STRONG>睡眠后鼠标死机几分钟<BR><BR>终于有电脑可以跑Vista，迫不及待就装了。首先她很美，美的让人一见就喜欢。不过往往美丽不是那么容易消费的。<BR><BR>装好Vista后，点击开始菜单里的[睡眠]按钮尝试一把，结果机器怎么按键盘，怎么摇鼠标，都恢复不了。<BR>郁闷，只好重新[开机]（机箱上面的按钮）。<BR>发觉机器直接回到了桌面，但是鼠标死掉了，键盘部分不能使用。<BR>没办法，强行关机。反复试了几次始终这样。<BR><BR>接着仔细想想[睡眠]后的反应：鼠标电都没有了，死掉了。键盘有电也死掉部分。<BR><FONT color=#0000ff>并且如果你继续等待死机，5-10分钟后鼠标又来电了，系统也不死了。呵呵，奇怪！难道鼠标刚才挣扎着吗？<BR></FONT><BR>到google、baidu搜索研究了一会，只找到了几个设置vista操作系统的方法，可惜都不管用。<BR><BR>最后想想鼠标来不了电，是否跟电源管理有问题呢？？？<BR>再想起bios中设置了【S3】的电源管理模式，默认值却是：【S1】啊！<BR><BR>于是重启把bios改回【S1】，接着vista的[睡眠]终于OK了。不再死掉。<BR><BR>安逸，之前很生气 都想放弃vista的美丽了，还好坚持了，呵呵。<BR></FONT><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1211654.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42131/" target="_blank">[新闻]祝Google 10周岁生日快乐</a>]]></description></item><item><title>bat批处理文件的执行过程有趣</title><link>http://www.cnblogs.com/ClarkChan/archive/2008/02/29/1086644.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Fri, 29 Feb 2008 13:42:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/02/29/1086644.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1086644.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/02/29/1086644.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1086644.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1086644.html</trackback:ping><description><![CDATA[今天发现个有趣的事情，Windows运行bat文件时，居然是这样：<BR>打开文件，<BR>读第一行，<BR>关闭文件，<BR>执行第一行，<BR>再打开文件，<BR>再读第二行，<BR>再关闭文件，<BR>再执行第二行，<BR>。。。。。太搞了，为什么呢，呵呵。<BR><BR><BR>过程演示：<BR><BR>1》创建文件：C:\TestBat.bat<BR>/*****************/<BR>c:<BR>md TestBat2<BR>copy TestBat\*.* TestBat2<BR>rd TestBat2 /s /q&nbsp; <BR>/*****************/<BR>2》创建文件夹：C:\TestBat，并放入若干文件，机器快就多放点。<BR>3》运行 TestBat.bat<BR>4》右键编辑文件：TestBat.bat，并保存。<BR>/*****************/<BR>c:<BR>md TestBat2<BR>copy TestBat\*.* TestBat2<BR>rd TestBat2 /s /q&nbsp; <BR>pause<BR>/*****************/<BR>5》结果画面停住了<BR><IMG height=1 src="/WebResource.axd?d=pLXXeGbWF7eXU8SMs2-GFZvUWY2JNH05dFx5YzJhGUYAYJAFEaTEq36NAhTPy7_KekvzDFwt8wvQWdByvJIGWdEq6x2KpKD80&amp;t=633043282340000000" width=1><IMG height=434 alt=80407.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80407/80407.JPG" width=665 border=0><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1086644.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42130/" target="_blank">[新闻]Google十年市值达1500亿美元 创造奇迹</a>]]></description></item><item><title>Windows XP 文件删除之后在回收站找不到文件</title><link>http://www.cnblogs.com/ClarkChan/archive/2008/01/27/1054835.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sun, 27 Jan 2008 02:34:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/01/27/1054835.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1054835.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/01/27/1054835.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1054835.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1054835.html</trackback:ping><description><![CDATA[<P><FONT color=#008000><STRONG>Windows XP </STRONG>文件删除之后在回收站找不到文件的第X个原因</FONT></P>
<P><FONT color=#008000>今天创建了一个用户A，接着登陆到A后，发觉对U盘下的文件删除，此时回收站居然找不到文件。<BR>接着查了下权限的设置，U盘对A用户只读的，并且U盘下没有创建System权限。<BR>于是增加了U盘System完全控制的权限，结果仍然不管用。<BR>接着上google搜索了一阵，全是什么：<BR>按了【Shift键】、选中了【删除时不将文件移入回收站,而是彻底删除】<BR>以及【被删除的文件太大了】。<BR>看看自己的情况完全不是一回事，回收站属性设置+按键+文件大小，全都是对的。<BR>没办法了，难道真的是XP的bug吗？？后来想到【被删除的文件太大了】，<BR>又想到【用户A在U盘下没有写的权限】，是否是文件删除的时候，没权限写入回收站呢？？</FONT></P>
<P><FONT color=#008000>仔细看了看回收站的属性，居然没有U盘这个页签！！<BR></FONT><IMG height=602 alt=8012701.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80127/8012701.JPG" width=934 border=0><BR><FONT color=#008000>又打开系统文件+隐藏文件的查看，原来U:\RECYCLER下少一个可以访问的回收站图标！！</FONT><BR><IMG height=517 alt=8012702.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80127/8012702.JPG" width=799 border=0><BR><IMG height=427 alt=8012703.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80127/8012703.JPG" width=810 border=0><BR><FONT color=#008000>大概明白原因了，在U盘中将用户A添加：修改+写入的权限。<BR>再回到U:\RECYCLER下，多了个回收站图标。</FONT><BR><IMG height=285 alt=8012704.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80127/8012704.JPG" width=790 border=0><BR><IMG height=275 alt=8012705.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80127/8012705.JPG" width=796 border=0><BR><FONT color=#008000>并且回收站属性中的U盘页签也有了。</FONT><IMG height=518 alt=8012706.JPG src="http://www.cnblogs.com/images/cnblogs_com/clarkchan/80127/8012706.JPG" width=922 border=0><BR><BR><FONT color=#008000>接着回去把U盘中用户A的修改+写入权限取消掉。<BR>至此用户A，在U盘中的删除文件就进了桌面的回收站，舒服！！</FONT></P>
<P><FONT color=#008000>总结原因其实很简单：U盘下，A用户权限只读，没有写入和修改的权限。<BR>没有机会创建回收站管理文件夹U:\RECYCLER\S-1-5-21-1715567821-1343024091-839522115-1010，<BR>于是在U盘中A用户删除的文件被直接删除了。</FONT></P>
<P>现在啰哩吧嗦的写这么多，就说明这么简单的问题吗？也不全是拉。<BR>主要是对网上搜索到的答案，很不爽。<BR>回答人都说是提问人的设置和操作问题。提问人又答说设置和操作都OK的。<BR>其实真正还有个问题，需要我们静心下来找答案。</P>
<P><STRONG><FONT color=#ff0000>转载请注明<A>出处【</FONT></STRONG><A href="http://clarkchan.cnblogs.com/"><STRONG><FONT color=#ff0000></A>http://clarkchan.cnblogs.com/</FONT></STRONG></A><STRONG><FONT color=#ff0000>】，否则严禁转载！！<BR></FONT></STRONG></P><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1054835.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42129/" target="_blank">[新闻]GMail:回过头来支持IE6</a>]]></description></item><item><title>[愿望]</title><link>http://www.cnblogs.com/ClarkChan/archive/2008/01/06/1028083.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sun, 06 Jan 2008 13:06:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/01/06/1028083.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1028083.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/01/06/1028083.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1028083.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1028083.html</trackback:ping><description><![CDATA[<P><FONT color=#ff1493>人都喜欢留恋过去<BR>又喜欢憧憬将来<BR>可是经历了这么多之后<BR>我开始学会活在当下<BR>原来当你肯放下你的包袱<BR>每一刻都可以是一个新的开始<BR>这张纸是这本日记的最后一页<BR>我很想用来许个愿</FONT></P>
<P><FONT color=#ff1493>每个人生日的时候都会许愿<BR>如果我能活六十岁<BR>我想用这一生所有的愿望<BR>去换一个愿望</FONT></P>
<P>千谎百计<BR></P><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1028083.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42128/" target="_blank">[新闻]Google十年大变样</a>]]></description></item><item><title>[三月一日]</title><link>http://www.cnblogs.com/ClarkChan/archive/2008/01/05/1027337.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sat, 05 Jan 2008 14:09:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2008/01/05/1027337.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1027337.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2008/01/05/1027337.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1027337.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1027337.html</trackback:ping><description><![CDATA[<P><FONT color=#ff1493>三月一日，晴<BR>我听过一句话<BR>每一朵乌云都是镶了银边的<BR>不好的事过了之后，你就会发现<BR>你得到的可能比失去的更多<BR>今天的天空很漂亮，云很白<BR>阳光很灿烂<BR>我觉得会有好事发生<BR></FONT><BR>千谎百计<BR><BR></P>
<P><BR><BR>&nbsp;</P><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1027337.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42127/" target="_blank">[新闻]谷歌十年创新路</a>]]></description></item><item><title>命运</title><link>http://www.cnblogs.com/ClarkChan/archive/2007/12/30/1020809.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sun, 30 Dec 2007 03:04:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2007/12/30/1020809.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1020809.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2007/12/30/1020809.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1020809.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1020809.html</trackback:ping><description><![CDATA[<P><FONT color=#0000ff>命运_刘佳_赤道和北极</FONT></P>
<P><FONT color=#0000ff>词：<BR>曲：</FONT></P>
<P>都是你我忘乎所以<BR>打翻深藏在水晶瓶的咒语<BR>自作聪明的我还是不经意<BR>偷偷的爱上你<BR>不小心没有看仔细<BR>发现你依然隐藏好多秘密<BR>似乎我不一定是你的唯一<BR>才让你显得那么漫不经心<BR>就算我心里会有一点点在乎你<BR>你也别以为你会有什么了不起<BR>一场游戏我不想输了我自己<BR>还那么便宜了你<BR>就算是我心里真得那么在乎你<BR>也不过是命运安排的浪漫的旋律<BR>可不可以让我多一些<BR>幸福的回忆给我美丽<BR>浪漫的旋律<BR>可不可以给我多一些些<BR>幸福的动力<BR></P><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1020809.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42126/" target="_blank">[新闻]十年回顾：Google的互联网经济</a>]]></description></item><item><title>今天</title><link>http://www.cnblogs.com/ClarkChan/archive/2007/12/28/1018947.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Fri, 28 Dec 2007 11:15:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2007/12/28/1018947.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/1018947.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2007/12/28/1018947.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/1018947.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/1018947.html</trackback:ping><description><![CDATA[<DIV class=postText>
<P><FONT color=#0000ff>刘德华_今天_</FONT></P>
<P><FONT color=#0000ff>词：陈乐融<BR>曲：黄庆元</FONT></P>
<P>走过岁月我才发现世界多不完美<BR>成功或失败都有一些错觉<BR>沧海有多广江湖有多深<BR>局中人才了解<BR>生命开始情不情愿总要过完一生<BR>交出一片心不怕被你误解<BR>谁没受过伤谁没流过泪<BR>何必要躲在黑暗里自苦又自怜<BR>我不断失望不断希望<BR>苦自己尝笑与你分享<BR>如今站在台上也难免心慌<BR>如果要飞得高就该把地平线忘掉<BR>等了好久终於等到今天<BR>梦了好久终於把梦实现<BR>前途漫漫任我闯幸亏还有你在身旁<BR>盼了好久终於盼到今天<BR>忍了好久终於把梦实现<BR>那些不变的风霜早就无所谓<BR>累也不说累<BR>我不断失望不断希望<BR>苦自己尝笑与你分享<BR>如今站在台上也难免心慌<BR>如果要飞得高就该把地平线忘掉<BR>等了好久终於等到今天<BR>梦了好久终於把梦实现<BR>前途漫漫任我闯幸亏还有你在身旁<BR>盼了好久终於盼到今天<BR>忍了好久终於把梦实现<BR>那些不变的风霜早就无所谓<BR>累也不说累<BR>等了好久终於等到今天<BR>梦了好久终於把梦实现<BR>前途漫漫任我闯幸亏还有你在身旁<BR>盼了好久终於盼到今天<BR>忍了好久终於把梦实现<BR>那些不变的风霜早就无所谓<BR>累也不说累<BR></P></DIV><img src ="http://www.cnblogs.com/ClarkChan/aggbug/1018947.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42123/" target="_blank">[新闻]Google 10周年大事记</a>]]></description></item><item><title>我要找到你</title><link>http://www.cnblogs.com/ClarkChan/archive/2007/12/15/996055.html</link><dc:creator>Clark Chan</dc:creator><author>Clark Chan</author><pubDate>Sat, 15 Dec 2007 08:29:00 GMT</pubDate><guid>http://www.cnblogs.com/ClarkChan/archive/2007/12/15/996055.html</guid><wfw:comment>http://www.cnblogs.com/ClarkChan/comments/996055.html</wfw:comment><comments>http://www.cnblogs.com/ClarkChan/archive/2007/12/15/996055.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ClarkChan/comments/commentRss/996055.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ClarkChan/services/trackbacks/996055.html</trackback:ping><description><![CDATA[<P><FONT color=#0000ff>我要找到你_陈明_幸福</FONT></P>
<P><FONT color=#0000ff>词：<BR>曲：</FONT></P>
<P>有些人爱到忘了形<BR>结果落的一败涂地<BR>有些人永远在憧憬<BR>却只差一步距离<BR>问世间什么最美丽<BR>爱情绝对是个奇迹<BR>我明白会有一颗心<BR>在远方等我靠近<BR>喔我要找到你<BR>不管南北东西<BR>直觉会给我指引<BR>若是爱上你<BR>别问什么原因<BR>第一眼就能够认出你<BR>喔我要找到你<BR>喊出你的名字<BR>打开幸福的盒子<BR>让我找到你<BR>就从那一刻起<BR>一开始一路走一辈子<BR>我要找到你<BR>不管南北东西<BR>直觉会给我指引<BR>若是爱上你<BR>别问什么原因<BR>看见你就是你别怀疑<BR>喔我要找到你<BR>喊出你的名字<BR>打开幸福的盒子<BR>让我找到你<BR>就从那一刻起<BR>一开始一路走一辈子</P><img src ="http://www.cnblogs.com/ClarkChan/aggbug/996055.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42122/" target="_blank">[新闻]Google上下二十年</a>]]></description></item></channel></rss>