<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>簡睿隨筆 《科技篇》-作業系統備忘</title>
<link>http://blog.roodo.com/emisjerry/archives/cat_3887.html</link>
<description>
  
    
      學習過程的各項紀錄與備忘
:::看不到圖請連我
的Xuite主站::
      
      
      
       
      
    
    
      





      
 

      

      
        
          
            
              
              輸
入您的搜尋字詞
              
            
          
        
        提
交搜尋表單
      
      
    
  





_uacct = &quot;UA-123122-2&quot;;
urchinTracker();

</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/emisjerry/archives/cat_3887.xml" rel="self" type="application/rss+xml" />
<item>
	<title>如何用批次指令取得上個月的月份</title>
	<description><![CDATA[
			同事問了個問題：他的系統每天會建一個以月份為名的資料夾（如C:\Data\200809、C:\Data\200810等），裡面會放該月每天產生的系統檔案，如何用批次檔把上個月的每個資料夾裡的檔案都刪掉？如果寫支程式（如PowerShell）來做是很簡單，不過卻限制必須使用批次檔來做，這就有點難度了，因為Windows的批次指令實在陽春得可以。
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>同事問了個問題：他的系統每天會建一個以月份為名的資料夾（如C:\Data\200809、C:\Data\200810等），裡面會放該月每天產生的系統檔案，如何用批次檔把上個月的每個資料夾裡的檔案都刪掉？如果寫支程式（如PowerShell）來做是很簡單，不過卻限制必須使用批次檔來做，這就有點難度了，因為Windows的批次指令實在陽春得可以。</p>
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/7418765.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7418765.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7418765.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Tue, 21 Oct 2008 22:23:06 +0800</pubDate>
</item>
<item>
	<title>IE7突然出現「存放裝置空間不足，無法完成此操作」錯誤</title>
	<description><![CDATA[
			 最近某天早上剛開機用IE 7（版本：7.0.6001.18000）瀏覽網頁系統時，原本都能正常運作的網頁突然出現「存放裝置空間不足，無法完成此操 作」的錯誤訊息，甚至用功能表裡的【關於Internet Explorer】也會出現相同的錯誤：    我的硬碟空間充足，TEMP所指的資料夾空間也夠，查了許久仍無法解決。由Visual Studio裡找到錯誤是發生在jQuery.js裡的navigator.userAgent，只 要一執行到這行就會出現錯誤：    後來先把這行指令修改如下，讓IE能正常執行：  var userAgent = &quot;mozilla/4.0 (compatible;MSIE 6.0)&quot;; //navigator.userAgent.toLowerCase();  今天仔細搜尋了網路上的資訊，找不到任何類似的問題，難道是我的IE突變嗎？後來是使用了下列步驟還原才又恢復正常：功能表【工具】&rarr;網際網路選項&rarr;〔進 階頁籤〕，按最下方的〔重設〕按鈕。    ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 最近某天早上剛開機用IE 7（版本：7.0.6001.18000）瀏覽網頁系統時，原本都能正常運作的網頁突然出現「存放裝置空間不足，無法完成此操 作」的錯誤訊息，甚至用功能表裡的【關於Internet Explorer】也會出現相同的錯誤：<br /> <br /> <img style="width: 429px; height: 254px" src="http://1eddqg.bay.livefilestore.com/y1pEROll7IrI80nNIdTjiYVTX4cIlTDFVXM-Ww9kcOi8qUTqdGj1pAvkyFUEnil0IrUTXRf-4b_zuk/IE-error1.png" alt="IE-error1" /><br /> <br /> 我的硬碟空間充足，TEMP所指的資料夾空間也夠，查了許久仍無法解決。由Visual Studio裡找到錯誤是發生在jQuery.js裡的<span style="font-weight: bold">navigator.userAgent</span>，只 要一執行到這行就會出現錯誤：<br /> <br /> <img style="width: 600px; height: 415px" src="http://1eddqg.bay.livefilestore.com/y1pcJL1Fk0GEq64yw_m-HgGku2QWSxnWo_1wrffGXZnqo3i8Hjwdsjdv6wXyUXPKoXmhiO6WUyfql8/IE-error2.png" alt="IE-error2" /><br /> <br /> 後來先把這行指令修改如下，讓IE能正常執行：<br /> <br /> <pre class="viewer">var userAgent = &quot;mozilla/4.0 (compatible;MSIE 6.0)&quot;; //navigator.userAgent.toLowerCase();<br /></pre> <br /> 今天仔細搜尋了網路上的資訊，找不到任何類似的問題，難道是我的IE突變嗎？後來是使用了下列步驟還原才又恢復正常：功能表【工具】&rarr;網際網路選項&rarr;〔進 階頁籤〕，按最下方的〔重設〕按鈕。<br /> <br /> <img style="width: 579px; height: 450px" src="http://1eddqg.bay.livefilestore.com/y1pcJL1Fk0GEq6OiHj8E14TEQ4u2Mc3-GUFB9ILq_Sesbr_kIaJ_ZTm32W2iF0SvVPBTqWOkk1zIFU/IE-error3.png" alt="IE-error3" /><br /> <br /> ## 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6343145.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6343145.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 05 Jul 2008 00:37:20 +0800</pubDate>
</item>
<item>
	<title>用多顆CPU加快Vista開機速度</title>
	<description><![CDATA[
			LifeHacker.com的這篇Make Vista Use Multiple Cores to Speed Boot Time介紹了讓Windows Vista加快開機速度的方法，簡單說就是用msconfig把開機時的CPU數加大，我試了一下感覺似乎有加快，有興趣者不妨一試。較詳盡的操作畫面可參考 Quick Way to Boost Vista Boot Time。##
		]]>
	</description>
	<content:encoded><![CDATA[
			<img src="http://www.hackosis.com/wp-content/uploads/2008/06/3.gif" alt="" hspace="10" align="left" />LifeHacker.com的這篇<a href="http://lifehacker.com/396904/make-vista-use-multiple-cores-to-speed-boot-time">Make Vista Use Multiple Cores to Speed Boot Time</a>介紹了讓Windows Vista加快開機速度的方法，簡單說就是用msconfig把開機時的CPU數加大，我試了一下感覺似乎有加快，有興趣者不妨一試。較詳盡的操作畫面可參考 <a href="http://www.hackosis.com/index.php/2008/06/23/windows-quick-way-to-boost-vista-boot-time/">Quick Way to Boost Vista Boot Time</a>。<br /><br />##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6225173.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6225173.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Tue, 24 Jun 2008 22:25:47 +0800</pubDate>
</item>
<item>
	<title>命令提示字元的完美替身：PowerCmd與Console 2.0</title>
	<description><![CDATA[
			 對於喜歡或習慣文字模式操作系統的使用者而言，在Windows的環境裡選擇是有限 的，使用得最多的應該 還是內建的cmd.exe吧？其他的選擇有下列幾 種： JP Software的4DOS、4NT、Take Command4DOS已經變成免費，適用於Windows 95/98/ME4NT已整合到Take Command裡，因而不在JP Software產品線裡了購買費用是美金95.95元，有提供30天試用版PowerCmd： 美金29.95元，有30天試用版Console：Open source，目前版本為2.0，稍經設定便能在中文環境裡使用 由我這篇寫於 2002年的文章可以知道我使用了4DOS、Take Command-32有一段時間，後來因為授權費用和Windows 升級的關係，又重新使用強化過的cmd.exe+doskey.exe。每次執行不同的操作時，就開啟了多個命令提示字元視窗，不僅佔據一些螢幕空間， 也影響尋找持定視窗的速度。而PowerCmd和Console正好是多頁籤的操作介面，恰好解決了多視窗的困擾。 PowerCmd簡介 PowerCmd安裝後就能正常的在中文環境裡運作。按下Ctrl+N就能開啟新的DOS頁籤，為了識別不同頁籤，可以用title指令來變更頁籤的標題（但這個功能 我都試不成功，不知那裡弄錯...）。PowerCmd選取與Copy/Paste的操作方法也和cmd.exe開啟快速編輯模式後用右鍵操作的方法不 同：用左鍵選取文字，再往外拖放，則選取文字立即出現在命令列。  PowerCmd的竹自動完成會將符合的候選檔案顯示在一個彈出式視窗上，這樣能更簡單的選用要使用的檔案。  試用時有遇到幾個問題，當使用不同的頁籤Layout時，游標的焦點有時會跑掉，變得無法操作，因此建議用預設的單畫面模式較好。 還是使用免費的Console吧 PowerCmd雖然功能較多，似乎也較穩定，但看在Console是免費且開源的情形下，還是決定主要使用Console。Console安裝後必須再 做設定，設定的細節請參考Console2 終於可以顯示中文了和這 篇文章，也可直接下載我做好的Registry檔案，執行後就能正常使用中文字型了。  接著再參考Consolas in Windows Console下載美觀的Consolas字型，在【Edit&rarr;Settings...】裡指定使用 Consolas，雖然不影響中文字型但英文則變得好看多了。  下載連結 PowerCmd：http://www.powercmd.com/Install_PowerCmd.exeConsole：http://downloads.sourceforge.net/console/Console-2.00b139-Beta.zip?modtime=1206556288&amp;big_mirror=0 
		]]>
	</description>
	<content:encoded><![CDATA[
			 <a href="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXGI1oBovKeJdx86W0DSCu1Z4VO1uR3d3fB4t-ZPqQPc1nVqtH44BsDTjXz1EBw152RcHXzLhKn5b1y4PX8uuMmb/PowerCmd.png" target="_blank"><img style="border: 0px solid ; width: 400px; height: 308px; float: left" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXGI1oBovKeJdx86W0DSCu1Z4VO1uR3d3fDUsluALEG_o8dkZQzUUMYD0qkn9YL3W92ABxlKGQOBF1nGqN2hFzET/PowerCmd.png" alt="PowerCmd" hspace="30" /></a>對於喜歡或習慣文字模式操作系統的使用者而言，在Windows的環境裡選擇是有限 的，使用得最多的應該 還是內建的cmd.exe吧？其他的選擇有下列幾 種： <ul><li><a href="http://www.jpsoft.com/index.html" target="_blank">JP Software</a>的4DOS、4NT、Take Command<ul><li>4DOS已經變成免費，適用於Windows 95/98/ME</li><li>4NT已整合到Take Command裡，因而不在JP Software產品線裡了</li><li>購買費用是美金95.95元，有提供30天試用版</li></ul></li><li><a href="http://www.powercmd.exe/" target="_blank">PowerCmd</a>： 美金29.95元，有30天試用版</li><li><a href="http://sourceforge.net/projects/console" target="_blank">Console</a>：Open source，目前版本為2.0，稍經設定便能在中文環境裡使用</li></ul> 由我這篇寫於<a href="http://blog.xuite.net/emisjerry/tech/48567" target="_blank"> 2002年的文章</a>可以知道我使用了4DOS、Take Command-32有一段時間，後來因為授權費用和Windows 升級的關係，又重新使用強化過的cmd.exe+doskey.exe。每次執行不同的操作時，就開啟了多個命令提示字元視窗，不僅佔據一些螢幕空間， 也影響尋找持定視窗的速度。而PowerCmd和Console正好是多頁籤的操作介面，恰好解決了多視窗的困擾。<br /> <h1>PowerCmd簡介</h1> PowerCmd安裝後就能正常的在中文環境裡運作。按下Ctrl+N就能開啟新的DOS頁籤，為了識別不同頁籤，可以用<span style="font-weight: bold">title</span>指令來變更頁籤的標題（但這個功能 我都試不成功，不知那裡弄錯...）。PowerCmd選取與Copy/Paste的操作方法也和cmd.exe開啟快速編輯模式後用右鍵操作的方法不 同：用左鍵選取文字，再往外拖放，則選取文字立即出現在命令列。<br /> <br /> PowerCmd的竹自動完成會將符合的候選檔案顯示在一個彈出式視窗上，這樣能更簡單的選用要使用的檔案。<br /> <br /> 試用時有遇到幾個問題，當使用不同的頁籤Layout時，游標的焦點有時會跑掉，變得無法操作，因此建議用預設的單畫面模式較好。<br /> <h1>還是使用免費的Console吧</h1><img style="width: 505px; height: 619px; float: left" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXGMqb2Y-X0AwHIVjaJqqROAgONk1SWQISi0ocm1FBQ_C4Y0n_PBQslmI38kf8wQfgYYHdl-x-yRgBv_9Rh6MtZi/console2.png" alt="Console2" hspace="20" /> PowerCmd雖然功能較多，似乎也較穩定，但看在Console是免費且開源的情形下，還是決定主要使用Console。Console安裝後必須再 做設定，設定的細節請參考<a href="http://blog.darkthread.net/blogs/darkthreadtw/archive/2007/02/08/console2.aspx" target="_blank">Console2 終於可以顯示中文了</a>和<a href="http://www.cinnamonpirate.com/blog/387/" target="_blank">這 篇文章</a>，也可直接下載我做好的<a href="http://1eddqg.bay.livefilestore.com/y1p4vAaHNH_ynqFVg4w2836G_FozsAdpmvKtTyo1OhFxnvQeOI_KvKU8Zl5veZyA7oLRPUEtko3ulvbeonVBpjASA/console2.reg?download" target="_blank">Registry檔案</a>，執行後就能正常使用中文字型了。<br /> <br /> 接著再參考<a rel="bookmark" href="http://www.jeffhung.net/blog/articles/jeffhung/1114/" title="Permalink to Consolas in Windows Console">Consolas in Windows Console</a>下載美觀的Consolas字型，在【Edit&rarr;Settings...】裡指定使用 Consolas，雖然不影響中文字型但英文則變得好看多了。 <hr /> <h1>下載連結</h1> <ul><li>PowerCmd：<a href="http://www.powercmd.com/Install_PowerCmd.exe" target="_blank">http://www.powercmd.com/Install_PowerCmd.exe</a></li><li>Console：<a href="http://downloads.sourceforge.net/console/Console-2.00b139-Beta.zip?modtime=1206556288&amp;big_mirror=0" target="_blank">http://downloads.sourceforge.net/console/Console-2.00b139-Beta.zip?modtime=1206556288&amp;big_mirror=0</a></li></ul> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6003985.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6003985.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 10 May 2008 00:48:16 +0800</pubDate>
</item>
<item>
	<title>[Vista] 把桌面行事曆Rainlendar鎖定在桌面上</title>
	<description><![CDATA[
			 桌面行事曆Rainlendar 2.0是很常見的一個行事曆工具，我一般是把它鎖定在桌面上，以達到最佳的提醒效果。沒想到在Windows Vista裡鎖定桌面的功能竟然失效！試了半天後才發覺在Rainlendar的FAQ裡早有了解決方法：由Rainlendar的System Tray圖示的右鍵功能表，依下列步驟設定：選項&rarr;進階移動到第16項：透明度類型把值由【原生(Native)】改成【複製(Copy)】按〔確定〕這樣設定後就正常了。##
		]]>
	</description>
	<content:encoded><![CDATA[
			 <p style="margin-bottom: 0cm"><img style="width: 249px; height: 340px; float: left" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXHayfSocj-9W2s9XdjXnGFmHOrNq-7C5ti3gDTFwr42GhbBcKdpVkbfTR5BHcENiY_2w72XmYQglesJW2GVSDAz/Rainlendar.png" alt="Rainlendar 2.0" hspace="30" vspace="0" />桌面行事曆<a href="http://www.rainlendar.net/cms/index.php" target="_blank"><font face="Times New Roman, serif">Rainlendar 2.0</font></a>是很常見的一個行事曆工具，我一般是把它鎖定在桌面上，以達到最佳的提醒效果。沒想到在Windows Vista裡鎖定桌面的功能竟然失效！試了半天後才發覺在Rainlendar的<a href="http://www.rainlendar.net/cms/index.php?option=com_easyfaq&amp;Itemid=26#faq19" target="_blank">FAQ</a>裡早有了解決方法：</p><p style="margin-bottom: 0cm">由Rainlendar的System Tray圖示的右鍵功能表，依下列步驟設定：</p><ol><li>選項&rarr;進階</li><li>移動到第16項：透明度類型</li><li>把值由【原生(Native)】改成【複製(Copy)】</li><li>按〔確定〕</li></ol>這樣設定後就正常了。<br /><br />##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5930345.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5930345.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 27 Apr 2008 22:33:13 +0800</pubDate>
</item>
<item>
	<title>[Windows] 去除環境變數DATE與TIME內的空白</title>
	<description><![CDATA[
			 有些處理我們會使用批次檔來寫，例如每天夜間的排程備份或輸出執行結果到Log檔，當這些輸出檔名必須帶有日期與時間時，經常都會有些不方便的地方 （如果你不清楚環境變數的運用的話，請先參考[Windows] 環境變數的擴充功能這篇的介紹）。 舉例如下：     cd &nbsp;\Project\MyProject1 rem %DATE%傳回：2008/04/20，DATE1=0420，TIME1=HHMM set DATE1=%DATE:~5,2%%DATE:~8,2% set TIME1=%TIME:~0,2%%TIME:~3,2% svn update &nbsp;&gt; UPDATE_%DATE1%_%TIME1%.log     以上指令看似正常，但當時間在早上0點到9點之間時，%TIME%傳回的竟然是 &nbsp;9:01:09.16－開頭第一個字元是空白，造成組成的檔名異常。另外，日期與時間的格式會因【控制台 &rarr;時鐘、語言和區域&rarr;地區與語言選項】裡的格式而有不同，為了一勞永逸地解決夾有空白問題，可以改寫如下：         set DATE1=%DATE:~5,2%%DATE:~8,2% set DATE1=%DATE1: =0%         用「冒號 空白 等於 0」 就能把變數裡的空白換成 0而不致有問題了。  ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 有些處理我們會使用批次檔來寫，例如每天夜間的排程備份或輸出執行結果到Log檔，當這些輸出檔名必須<span style="font-weight: bold">帶有日期與時間</span>時，經常都會有些不方便的地方 （如果你不清楚環境變數的運用的話，請先參考<span class="titlename"><a href="http://blog.xuite.net/emisjerry/tech/48618" target="_blank">[Windows] 環境變數的擴充功能</a>這篇的介紹</span>）。 舉例如下：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 100%; color: #33ff33"> <tbody> <tr> <td style="background-color: black">cd &nbsp;\Project\MyProject1<br /> rem %DATE%傳回：2008/04/20，DATE1=0420，TIME1=HHMM<br /> set DATE1=%DATE:~5,2%%DATE:~8,2%<br /> set TIME1=%TIME:~0,2%%TIME:~3,2%<br /> svn update &nbsp;&gt; UPDATE_%DATE1%_%TIME1%.log</td> </tr> </tbody> </table> <br /> 以上指令看似正常，但當時間在早上0點到9點之間時，%TIME%傳回的竟然是<span style="font-weight: bold"> &nbsp;9:01:09.16</span>－開頭第一個字元是空白，造成組成的檔名異常。另外，日期與時間的格式會因【控制台 &rarr;時鐘、語言和區域&rarr;地區與語言選項】裡的格式而有不同，為了一勞永逸地解決夾有空白問題，可以改寫如下：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 100%; color: #33ff33"> <tbody> <tr> <td style="background-color: black"> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 100%; color: #33ff33"> <tbody> <tr> <td style="background-color: black">set DATE1=%DATE:~5,2%%DATE:~8,2%<br /> set DATE1=%DATE1: =0%</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <br /> 用「<span style="font-weight: bold">冒號 空白 等於 0</span>」 就能把變數裡的空白換成 0而不致有問題了。<br /> <br /> ##<iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/dos.html"></iframe> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5891793.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5891793.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 20 Apr 2008 20:41:39 +0800</pubDate>
</item>
<item>
	<title>[Vista] 設定環境變數SET命令的擴充</title>
	<description><![CDATA[
			  Windows Vista的SET命令也有了擴充，詳細說明可用 SET /? 檢視。我歸納成下列 5 點：  只執行SET會列出所有的環境變數，若用 SET P 則列出所有以P開頭的所有變數SET /A 可以做數值計算（A=Arithmetic）。咦，為什麼不用小算盤？況且現在的小算盤也有標準型和工程型兩種，我能想到的一個應用是在進制混合的狀況下 使用，例如下列是16進位（0x開頭）加10進位再加8進位（0開頭的3位數）：                                    C:\&gt;set /A answer=0xff+100+012365                       SET /P 會先顯示提示文字，再把使用者輸入的值存入變數（P=Prompt），例如：                                    C:\&gt;  C:\&gt;set /P answer=請輸入:  請輸入:12345              C:\&gt;set answer  answer=12345                                   變數的子字串替換：%變數名: 原字串=新字串%                                    C:\Users\jerry\Documents&gt;set FILE=%CD%\MyFile.html              C:\Users\jerry\Documents&gt;set FILE  FILE=C:\Users\jerry\Documents\MyFile.html              C:\Users\jerry\Documents&gt;set FILE=%FILE:My=Your% &amp;&amp; set FILE  FILE=C:\Users\jerry\Documents\YourFile.html                                         取子字串：%PATH:~10,5%，這個擴充原本就有 了  ##  
		]]>
	</description>
	<content:encoded><![CDATA[
			  Windows Vista的SET命令也有了擴充，詳細說明可用 SET /? 檢視。我歸納成下列 5 點：<br />  <ol><li>只執行SET會列出所有的環境變數，若用 <span style="font-weight: bold">SET P</span> 則列出所有以P開頭的所有變數<br /></li><li><span style="font-weight: bold">SET /A</span> 可以做數值計算（A=Arithmetic）。咦，為什麼不用小算盤？況且現在的小算盤也有標準型和工程型兩種，我能想到的一個應用是在進制混合的狀況下 使用，例如下列是16進位（0x開頭）加10進位再加8進位（0開頭的3位數）：<br />      <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 70%">        <tbody>          <tr>            <td style="background-color: black"><span style="color: #33ff33">C:\&gt;set /A answer=0xff+100+012<br />365</span></td>          </tr>        </tbody>     </table></li><li>SET /P 會先顯示提示文字，再把使用者輸入的值存入變數（P=Prompt），例如：<br />      <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 70%">        <tbody>          <tr>            <td style="background-color: black"><span style="color: #33ff33">C:\&gt;<br />  C:\&gt;set /P answer=請輸入:<br />  請輸入:12345<br />            <br />  C:\&gt;set answer<br />  answer=12345<br />            </span></td>          </tr>        </tbody>     </table></li><li>變數的子字串替換：<span style="font-weight: bold">%變數名: 原字串=新字串%</span><br />      <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 70%">        <tbody>          <tr>            <td style="background-color: black"><span style="color: #33ff33">C:\Users\jerry\Documents&gt;set FILE=%CD%\MyFile.html<br />            <br />  C:\Users\jerry\Documents&gt;set FILE<br />  FILE=C:\Users\jerry\Documents\<span style="color: red">My</span>File.html<br />            <br />  C:\Users\jerry\Documents&gt;set FILE=<span style="color: red; font-weight: bold">%FILE:My=Your%</span> &amp;&amp; set FILE<br />  FILE=C:\Users\jerry\Documents\<span style="color: red">Your</span>File.html<br />            </span></td>          </tr>        </tbody>     </table>      </li><li style="color: black">取子字串：<span style="font-weight: bold">%PATH:~10,5%</span>，這個擴充原本就有 了</li></ol>  ##<iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe>  
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5886029.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5886029.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 19 Apr 2008 15:49:23 +0800</pubDate>
</item>
<item>
	<title>[Vista] 解決SP1更新問題</title>
	<description><![CDATA[
			 昨天看到了Windows Vista SP1 All Language Standalone 版公佈的消息後就下載回來更新，沒想到執行沒幾個步驟就彈出錯誤對 話窗，試了幾次，也重新執行Windows Update把所有的重要的更新都執行了，還是出現錯誤碼0x80070070， 最後用這個錯誤碼Google了一下，看起來是暫存檔的問題，才聯想到可能是環境變數TEMP與TMP的設定造成的。  因為Vista 32位元只能使用到3GB的記憶體，而我的ThinkPad X61配有4GB，因此把作業系統用不到的1GB切成成RAM Disk（我使用了E:），再把環境變數TEMP與TMP設定到 E:\TEMP，重新把變數改到 C:\TEMP 後就能正常更新了。  更新後已經使用一天，一切正常。  ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 昨天看到了<a href="http://download.microsoft.com/download/2/1/9/219163f5-fae5-4c2b-a607-872ff085f9e2/Windows6.0-KB936330-X86-wave1.exe" target="_blank">Windows Vista SP1 All Language Standalone 版</a>公佈的消息後就下載回來更新，沒想到執行沒幾個步驟就彈出錯誤對 話窗，試了幾次，也重新執行Windows Update把所有的重要的更新都執行了，還是出現錯誤碼<span style="font-weight: bold; color: red">0x80070070</span>， 最後用這個錯誤碼Google了一下，看起來是暫存檔的問題，才聯想到可能是環境變數<span style="font-weight: bold">TEMP</span>與<span style="font-weight: bold">TMP</span>的設定造成的。<br /> <br /> 因為Vista 32位元只能使用到3GB的記憶體，而我的ThinkPad X61配有4GB，因此把作業系統用不到的1GB切成成RAM Disk（我使用了E:），再把環境變數TEMP與TMP設定到 E:\TEMP，重新把變數改到 C:\TEMP 後就能正常更新了。<br /> <br /> 更新後已經使用一天，一切正常。<br /> <br /> ##<iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5876149.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5876149.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 17 Apr 2008 21:31:21 +0800</pubDate>
</item>
<item>
	<title>[Vista] 小試檔案總管的搜尋工具</title>
	<description><![CDATA[
			Windows Vista把桌面搜尋功能整合到系統裡，除了開始功能表的開始搜尋框可以達成類似Launchy似 的輸入部份字串找出符合檔名的檔案外，最方便的應該是在檔案總管理提供的搜尋功能了，以下是我彙總的一些使用案例。1. 我們可以在搜尋框裡輸入萬用字元來過濾符合樣式的檔案，例如輸入 *.doc 列出Word檔案，*.txt 列出文字檔案。只要搜尋框開始搜尋後，視窗自動增加搜尋相關的功能表項目：【儲存搜尋】與【搜尋工具】。如 果要加速搜尋速度則必須對常用資料夾建立索引，若搜尋的資料夾沒有建立過索引的話，會顯示【搜尋下列未編製索引的位置可能較慢: 】，在文字上按一下就能將目前資料夾加入索引對象，或用【修改索引位置】或功能表搜尋工具維護索引資料夾。2. 列出多種類型檔案：使用大寫的OR，如：java*.txt OR auto*.html其他的組合有AND、 NOT3. 指定明確的搜尋欄位：輸入格式是「搜尋欄位+半形冒號+ [大於小於等於之類的比對符號]+搜尋字串」，如：名 稱:faq檔名清單的表頭欄位都能拿來做為搜尋欄位，如常見的名稱、修改日期、大小 等等，只要在表頭欄位按右鍵就能顯示出可供顯示與使用的欄位。使用範例：大 小:&gt;100K修改日期:&gt;=2008/04/01也 能混用：date:&gt;2008/04/01 AND 類型:PNG如果覺得輸入中文有些麻煩 的話，也可以直接輸入英文，如：size:&gt;10Mmodified:lastweek詳 細的英文搜尋欄位可以參考Windows Vista and Windows Desktop Search 3.01 Advanced Query Syntax一文。覺得記指令很討厭？只要在功 能表【搜尋工具&rarr;搜尋窗格&rarr;按右側進階搜尋按鈕】輸入條件再按〔搜尋〕就能組合搜尋條件，搜尋框裡也會同步顯示條件 的語法，也能做為學習提示之用。參考：尋找檔案的提示Windows Vista and Windows Desktop Search 3.01 Advanced Query Syntax## 
		]]>
	</description>
	<content:encoded><![CDATA[
			<img style="width: 400px; height: 282px; float: left" src="http://zfmxfq.bay.livefilestore.com/y1pf6VtQqA4QXFBwyrpmz0Jf7h3NqQxLgNUiw9kW6SySe9FmirG292RQiPXsAst2ry1H1aM44Mc6HodarkWPMP5gLGGfl3ciIP7/%E6%AA%94%E6%A1%88%E7%B8%BD%E7%AE%A1%E6%90%9C%E5%B0%8B.png" alt="Vista search" hspace="20" vspace="10" />Windows Vista把桌面搜尋功能整合到系統裡，除了開始功能表的開始搜尋框可以達成類似<a href="http://www.launchy.net/" target="_blank">Launchy</a>似 的輸入部份字串找出符合檔名的檔案外，最方便的應該是在檔案總管理提供的搜尋功能了，以下是我彙總的一些使用案例。<br /><br />1. 我們可以在搜尋框裡輸入萬用字元來過濾符合樣式的檔案，例如輸入<span style="font-weight: bold"> *.doc</span> 列出Word檔案，<span style="font-weight: bold">*.txt </span>列出文字檔案。只要搜尋框開始搜尋後，視窗自動增加搜尋相關的功能表項目：【儲存搜尋】與【搜尋工具】。<br /><br />如 果要加速搜尋速度則必須對常用資料夾建立索引，若搜尋的資料夾沒有建立過索引的話，會顯示【搜尋下列未編製索引的位置可能較慢: 】，在文字上按一下就能將目前資料夾加入索引對象，或用【修改索引位置】或功能表搜尋工具維護索引資料夾。<br /><br /><img style="width: 897px; height: 240px" src="http://zfmxfq.bay.livefilestore.com/y1pf6VtQqA4QXHcp5YcbMLbY5oCXRh6oJlvXh5QsqjCsocZlXD2njT2J5-2-IFohA4HSFIGs9-1Hd1icXhRUnB1KReFUc49wkQG/Vista-index.png" alt="Vista build index" /><br /><br />2. 列出多種類型檔案：使用大寫的OR，如：<span style="font-weight: bold">java*.txt OR auto*.html</span><br />其他的組合有AND、 NOT<br /><br />3. 指定明確的搜尋欄位：輸入格式是「<span style="font-weight: bold">搜尋欄位+半形冒號+ [大於小於等於之類的比對符號]+搜尋字串</span>」，如：<span style="font-weight: bold">名 稱:faq</span><br /><br />檔名清單的表頭欄位都能拿來做為搜尋欄位，如常見的名稱、修改日期、大小 等等，只要在表頭欄位按右鍵就能顯示出可供顯示與使用的欄位。<br /><br />使用範例：<br /><ul><li>大 小:&gt;100K</li><li>修改日期:&gt;=2008/04/01</li><li>也 能混用：date:&gt;2008/04/01 AND 類型:PNG</li></ul>如果覺得輸入中文有些麻煩 的話，也可以直接輸入英文，如：<br /><ul><li>size:&gt;10M</li><li>modified:lastweek</li></ul>詳 細的英文搜尋欄位可以參考<a href="http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx" target="_blank">Windows Vista and Windows Desktop Search 3.01 Advanced Query Syntax</a>一文。<br /><br />覺得記指令很討厭？只要在功 能表【搜尋工具&rarr;搜尋窗格&rarr;按右側進階搜尋按鈕】輸入條件再按〔搜尋〕就能組合搜尋條件，搜尋框裡也會同步顯示條件 的語法，也能做為學習提示之用。<br /><br /><img style="width: 893px; height: 373px" src="http://zfmxfq.bay.livefilestore.com/y1pf6VtQqA4QXF_q4EBG4DeoX4TCp33-s5qMsG3wZQkev4929NWO3XaXQvnvzj9rTPzjmw6_hGOtjQHJkwEIRBjWsd1KiZ3gwwf/vista-search-advance.png" alt="Vista Search Advanced" /><br /><hr style="width: 100%; height: 2px" />參考：<br /><ul><li><a href="http://windowshelp.microsoft.com/Windows/zh-TW/Help/73106209-6df0-432a-8cb7-df5d8ce02ec61028.mspx" target="_blank">尋找檔案的提示</a></li><li><a href="http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx" target="_blank">Windows Vista and Windows Desktop Search 3.01 Advanced Query Syntax</a></li></ul>##<iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5856271.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5856271.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 13 Apr 2008 22:49:08 +0800</pubDate>
</item>
<item>
	<title>[Vista] 使用iCACLs.exe快速變更檔案的存取權限</title>
	<description><![CDATA[
			 由於使用檔案總管變更記事本的安全性步驟繁複，因而查詢到了一篇Replacing notepad.exe in Vista 使用takeown.exe與icacls.exe直 接使用DOS命令變更內建檔案的使用權限設定。TakeOwn很好理解，就是取得所有權，但iCACLs就較困難些了。iCACLs在以前的 Windows版本裡相對應的指令名稱是CACLs：Change Access Control Lists 的縮寫（開頭的C也有寫成Control的）；而在Windows Server 2003 SP2與Windows Vista裡又出現加強版（Improved） 的CACLs，即 ICACLs.exe。以下我們就使用iCACLs.exe和C:\Windows\hh.exe來實驗如何用指令變更存取權限設定。  我們由檔案總管右鍵功能表開啟hh.exe的內容視窗&rarr;安全性頁籤&rarr;〔進階〕檢視hh.exe的使用權限，再以指令 icacls &nbsp;hh.exe 檢 視其輸出，二者做個比對就能比較了解iCACLs顯示的縮寫含義了。        C:\Windows&gt;icacls hh.exe hh.exe NT SERVICE\TrustedInstaller:(F) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Administrators:(RX) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NT AUTHORITY\SYSTEM:(RX) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Users:(RX)  已 順利處理 1 個檔案; 0 個檔案處理失敗     由對照可知： (F)是完全控制(Full Control)(RX)是讀取與執行(Read and Execute) 內建檔案只有TrustedInstaller具有完全控制的權限，透過iCACLs的 /grant 使用者:(F) 參數可以把完全控制權限授權給指定的使用者，首先用TakeOwn命令把hh.exe的擁有者變成登入的使用者，再變更存取權限：     C:\Windows&gt;takeown /F hh.exe  成功: 檔案 (或資料夾): &quot;C:\Windows\hh.exe&quot; 目前已經由使用者 &quot;JERRYTP\jerry&quot; 擁有。  C:\Windows&gt;icacls hh.exe /grant jerry:(F) 已處理的檔案: hh.exe 已順利處理 1 個檔案; 0 個檔案處理失敗  C:\Windows&gt;icacls hh.exe hh.exe JERRYTP\jerry:(F) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NT SERVICE\TrustedInstaller:(F) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Administrators:(RX) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NT AUTHORITY\SYSTEM:(RX) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Users:(RX)  已順利處理 1 個檔案; 0 個檔案處理失敗     由上面的紅色字體可以看到使用者jerry針對hh.exe已具有完全控制的權限了，往後不管是對 hh.exe 做改名、覆蓋或刪除操作才能成功。  iCACLs.exe命令頗為複雜，有時間再來仔細研究清楚。  另外，由於Google到的資料以英文居多，想讓DOS視窗的字碼頁由950(Traditional Chinese Big5)變成437(United States)應如何操作呢？  只要用debug.exe就 可以了。當debug.exe的減號提示符號出現後按 q 和 Enter回到DOS後，其編碼就變成437了。  ##   
		]]>
	</description>
	<content:encoded><![CDATA[
			 由於使用檔案總管變更記事本的安全性步驟繁複，因而查詢到了一篇<a href="http://simonguest.com/blogs/smguest/archive/2007/05/02/Replacing-notepad.exe-in-Vista.aspx" target="_blank">Replacing notepad.exe in Vista </a>使用<span style="font-weight: bold">takeown.exe</span>與<span style="font-weight: bold">icacls.exe</span>直 接使用DOS命令變更內建檔案的使用權限設定。TakeOwn很好理解，就是取得所有權，但iCACLs就較困難些了。iCACLs在以前的 Windows版本裡相對應的指令名稱是CACLs：Change <span style="font-weight: bold">A</span>ccess <span style="font-weight: bold">C</span>ontrol <span style="font-weight: bold">L</span>ist<span style="font-weight: bold">s</span> 的縮寫（開頭的C也有寫成Control的）；而在Windows Server 2003 SP2與Windows Vista裡又出現加強版（<span style="font-weight: bold">I</span>mproved） 的CACLs，即 ICACLs.exe。以下我們就使用iCACLs.exe和C:\Windows\hh.exe來實驗如何用指令變更存取權限設定。<br /> <br /> 我們由檔案總管右鍵功能表開啟hh.exe的內容視窗&rarr;安全性頁籤&rarr;〔進階〕檢視hh.exe的使用權限，再以指令<span style="font-style: italic"> icacls &nbsp;hh.exe </span>檢 視其輸出，二者做個比對就能比較了解iCACLs顯示的縮寫含義了。<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #33ccff; width: 936px; height: 806px"> <tbody> <tr> <td style="background-color: #ffffcc"><img style="width: 842px; height: 554px" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXGge49p1PLORCFG9ZeYDUqqItnqfcdHzj-ada4jDbZJcOv3-TI64g11EUNFxR4EHLAVgYSXM5wjgMTWaNKqm1Pv/vista-security-1.png" alt="Vista Security" align="middle" /></td> </tr> <tr> <td style="background-color: black"><span style="font-family: Arial; color: #33ff33">C:\Windows&gt;icacls hh.exe</span><br /> <span style="font-family: Arial; color: #33ff33">hh.exe NT SERVICE\TrustedInstaller:(F)</span><br /> <span style="font-family: Arial; color: #33ff33">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Administrators:(RX)</span><br /> <span style="font-family: Arial; color: #33ff33">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NT AUTHORITY\SYSTEM:(RX)</span><br /> <span style="font-family: Arial; color: #33ff33">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Users:(RX)</span><br /> <br /> <span style="font-family: Arial; color: #33ff33">已 順利處理 1 個檔案; 0 個檔案處理失敗</span></td> </tr> </tbody> </table> <br /> 由對照可知：<br /> <ul><li>(F)是完全控制(Full Control)</li><li>(RX)是讀取與執行(Read and Execute)</li></ul> 內建檔案只有TrustedInstaller具有完全控制的權限，透過iCACLs的 /grant 使用者:(F) 參數可以把完全控制權限授權給指定的使用者，首先用TakeOwn命令把hh.exe的擁有者變成登入的使用者，再變更存取權限：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: black; width: 100%; font-family: Arial; color: #33ff33"> <tbody> <tr> <td>C:\Windows&gt;takeown /F hh.exe<br /> <br /> 成功: 檔案 (或資料夾): &quot;C:\Windows\hh.exe&quot; 目前已經由使用者 &quot;JERRYTP\jerry&quot; 擁有。<br /> <br /> C:\Windows&gt;icacls hh.exe /grant jerry:(F)<br /> 已處理的檔案: hh.exe<br /> 已順利處理 1 個檔案; 0 個檔案處理失敗<br /> <br /> C:\Windows&gt;icacls hh.exe<br /> hh.exe <span style="font-weight: bold">JERRYTP\jerry:(F)</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NT SERVICE\TrustedInstaller:(F)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Administrators:(RX)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NT AUTHORITY\SYSTEM:(RX)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILTIN\Users:(RX)<br /> <br /> 已順利處理 1 個檔案; 0 個檔案處理失敗</td> </tr> </tbody> </table> <br /> 由上面的紅色字體可以看到使用者jerry針對hh.exe已具有完全控制的權限了，往後不管是對 hh.exe 做改名、覆蓋或刪除操作才能成功。<br /> <br /> iCACLs.exe命令頗為複雜，有時間再來仔細研究清楚。<br /> <br /> 另外，由於Google到的資料以英文居多，想讓DOS視窗的字碼頁由950(Traditional Chinese Big5)變成437(United States)應如何操作呢？<br /> <br /> 只要用<span style="font-weight: bold">debug.exe</span>就 可以了。當debug.exe的減號提示符號出現後按 q 和 Enter回到DOS後，其編碼就變成437了。<br /> <br /> ##<br /><iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe> <br /> <br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5851257.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5851257.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 12 Apr 2008 21:04:43 +0800</pubDate>
</item>
<item>
	<title>[Vista] 將陽春記事本Notepad.exe替換成慣用的文字編輯器</title>
	<description><![CDATA[
			Windows內建的記事本功能相當陽春，通常我都用EmEditor或 PsPad把它替換掉，但在Vista裡無法像以前一般只要複製與改名即可完成佈置，程序繁複許多，另外這次不使用檔案複製而改用mklink以符號連結與目錄連結 來建立記事本連結。以下是將記事本程式Notepad.exe改名為Notepad0.exe的步驟：假 定要讓使用者YOU具有Notepad.exe的完全控制權限的步驟：用檔案總管找到 Notepad.exe，按右鍵選【內容】選安全性頁籤&rarr;〔進階〕選 使用者YOU&rarr;〔編輯〕，顯示使用權限視窗按【擁有者頁籤】，目前的擁有者是 「TrustedInstaller」&rarr;〔編輯〕變更擁有者為YOU確 認目前的擁有者已經變成YOU後按確定，按連續幾個確定回到內容的安全性頁籤在內容視 窗的【群組或使用者名稱】選YOU&rarr;〔編輯〕選YOU，勾選下方的「完全控制」連 續按確定直到視窗關閉最後在檔案總管理把Notepad.exe改名成Notepad0.exe，注意：C: \Windows與C:\Windows\System32裡都有Notepad.exe，因此皆須執行上述操作開 啟DOS視窗後執行下列命令。PSPad執行時會讀取Lang資料夾裡的語言設定檔，因此再建立一個名為Lang的目錄連結指向PsPad\Lang：C:\Windows&gt;mklink notepad.exe &quot;c:\Program Files\PSPad\PSPad.exe&quot;已建立 notepad.exe 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\PSPad.exeC:\Windows&gt;mklink /D lang &quot;c:\Program Files\pspad\Lang&quot;已建立 lang 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\pspad\LangC:\Windows&gt;dir /aL&nbsp; 磁碟區 C 中的磁碟是 20080322&nbsp; 磁碟區序號:&nbsp; 8C99-6FAB&nbsp;C:\Windows 的目錄2008/04/12&nbsp; 10:47&nbsp;&nbsp;&nbsp; &lt;SYMLINKD&gt;&nbsp;&nbsp;&nbsp;&nbsp; lang [c:\Program Files\pspad\Lang]2008/04/12&nbsp; 10:47&nbsp;&nbsp;&nbsp; &lt;SYMLINK&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; notepad.exe [c:\Program Files\PSPad\PSPad.exe]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp; nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組有 的程式（如IE）會使用System32裡的記事本，因此System32裡也要重覆建立連結的動作。但C:\Windows\System32裡已經有 Lang目錄了，因此無法建立目錄連結，只能在該目錄裡建立符號連結ChineseBig5.ini與ChineseBig5.bmp：C:\Windows\System32&gt;mklink notepad.exe &quot;c:\Program Files\PSPad\PSPad.exe&quot;已建立 notepad.exe 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\PSPad.exeC:\Windows\System32&gt;cd LangC:\Windows\System32\Lang&gt;mklink ChineseBig5.ini &quot;c:\Program Files\PSPad\Lang\ChineseBig5.ini&quot;已建立 ChineseBig5.ini 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\Lang\ChineseBig5.iniC:\Windows\System32\Lang&gt;mklink ChineseBig5.bmp &quot;c:\Program Files\PSPad\Lang\ChineseBig5.bmp&quot;已建立 ChineseBig5.bmp 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\Lang\ChineseBig5.bmp如 果啟動後出現的是捷克文的話，由功能表倒數第三個項目裡的第一個選項重新設定預設語言為ChineseBig5即可。往 後執行記事本啟動的就會是功能強大的PsPad.exe。##
		]]>
	</description>
	<content:encoded><![CDATA[
			Windows內建的記事本功能相當陽春，通常我都用<a href="http://www.emeditor.exe/" target="_blank">EmEditor</a>或 <a href="http://www.pspad.com/" target="_blank">PsPad</a>把它替換掉，但在Vista裡無法像以前一般只要複製與改名即可完成佈置，程序繁複許多，另外這次不使用檔案複製而改用mklink以符號連結與目錄連結 來建立記事本連結。<br /><br />以下是將記事本程式Notepad.exe改名為Notepad0.exe的步驟：<br /><br />假 定要讓使用者YOU具有Notepad.exe的完全控制權限的步驟：<br /><ol><li>用檔案總管找到 Notepad.exe，按右鍵選【內容】</li><li>選安全性頁籤&rarr;〔進階〕<ol><li>選 使用者YOU&rarr;〔編輯〕，顯示使用權限視窗</li><li>按【擁有者頁籤】，目前的擁有者是 「TrustedInstaller」&rarr;〔編輯〕</li><li>變更擁有者為YOU</li><li>確 認目前的擁有者已經變成YOU後按確定，按連續幾個確定回到內容的安全性頁籤</li></ol></li><li>在內容視 窗的【群組或使用者名稱】選YOU&rarr;〔編輯〕</li><li>選YOU，勾選下方的「完全控制」</li><li>連 續按確定直到視窗關閉</li><li>最後在檔案總管理把Notepad.exe改名成Notepad0.exe，注意：C: \Windows與C:\Windows\System32裡都有Notepad.exe，因此皆須執行上述操作</li></ol>開 啟DOS視窗後執行下列命令。PSPad執行時會讀取Lang資料夾裡的語言設定檔，因此再建立一個名為Lang的目錄連結指向PsPad\Lang：<br /><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #000000; width: 100%"><tbody><tr><td><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows&gt;mklink notepad.exe &quot;c:\Program Files\PSPad\PSPad.exe&quot;</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">已建立 notepad.exe 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\PSPad.exe</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows&gt;mklink /D lang &quot;c:\Program Files\pspad\Lang&quot;</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">已建立 lang 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\pspad\Lang</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows&gt;dir /aL</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">&nbsp; 磁碟區 C 中的磁碟是 20080322</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">&nbsp; 磁碟區序號:&nbsp; 8C99-6FAB</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">&nbsp;C:\Windows 的目錄</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">2008/04/12&nbsp; 10:47&nbsp;&nbsp;&nbsp; &lt;SYMLINKD&gt;&nbsp;&nbsp;&nbsp;&nbsp; lang [c:\Program Files\pspad\Lang]</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">2008/04/12&nbsp; 10:47&nbsp;&nbsp;&nbsp; &lt;SYMLINK&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; notepad.exe [c:\Program Files\PSPad\PSPad.exe]</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp; nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組</span><br /></td></tr></tbody></table><br />有 的程式（如IE）會使用System32裡的記事本，因此System32裡也要重覆建立連結的動作。但C:\Windows\System32裡已經有 Lang目錄了，因此無法建立目錄連結，只能在該目錄裡建立符號連結ChineseBig5.ini與ChineseBig5.bmp：<br /><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #000000; width: 100%"><tbody><tr><td><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows\System32&gt;mklink notepad.exe &quot;c:\Program Files\PSPad\PSPad.exe&quot;</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">已建立 notepad.exe 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\PSPad.exe</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows\System32&gt;cd Lang</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows\System32\Lang&gt;mklink ChineseBig5.ini &quot;c:\Program Files\PSPad\Lang\ChineseBig5.ini&quot;</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">已建立 ChineseBig5.ini 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\Lang\ChineseBig5.ini</span><br /><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">C:\Windows\System32\Lang&gt;mklink ChineseBig5.bmp &quot;c:\Program Files\PSPad\Lang\ChineseBig5.bmp&quot;</span><br /><span style="color: #33ff33; font-family: &reg;&szlig;c&Ntilde;&Ocirc;">已建立 ChineseBig5.bmp 的符號連結 &lt;&lt;===&gt;&gt; c:\Program Files\PSPad\Lang\ChineseBig5.bmp</span></td></tr></tbody></table><br />如 果啟動後出現的是捷克文的話，由功能表倒數第三個項目裡的第一個選項重新設定預設語言為ChineseBig5即可。<br /><br />往 後執行記事本啟動的就會是功能強大的PsPad.exe。<br /><br />##<iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5847895.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5847895.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 12 Apr 2008 11:11:34 +0800</pubDate>
</item>
<item>
	<title>[Vista] 路徑分隔字元也能使用正斜線...「部份」</title>
	<description><![CDATA[
			 偶然發現Windows Vista對於路徑（Path） 的處理有些小小擴充，以下是我的測試。  原本Windows的路徑分隔字元是反斜線（＼），如果輸入Unix的正斜線（／）路徑的話，在DOS視窗裡會顯示「指令語法不正確。」的錯誤訊息，而 Vista已能在部份場合使 用正斜線了。     DOS 命令 執 行如果   &nbsp; cd c:/users/jerry/AppData 能成功 切換資料夾   &nbsp; dir c:/users/jerry/AppData 無效的 參數 - &quot;users&quot;.   &nbsp; dir &quot;c:/users/jerry/AppData&quot; 加上雙 引號就OK   &nbsp; md a/b/c/d 命令語 法不正確。   &nbsp; md &quot;a/b/c/d&quot; 這樣可 以成功     另外，路徑字串裡帶有空白的CD指令處理也有不同，以前版本必須用雙引號夾住帶空白的路徑字俓，Vista則會忽略空白，因此可以不使用雙引號：     DOS 命令 執行結果   &nbsp; md &quot;this is a test&quot; 建立帶有空白名稱的資料夾    &nbsp; cd &quot;this is a test&quot; 這樣原本就可以    &nbsp; cd this is a test vista 這樣也可以成功      用 cd /? 就可以看到如下的說明，空格不當成分隔字元：     CHDIR 命令不會將空格當成分隔字元，所以如果您要切換到含 有空格字元的目錄時，就算您不使用引號來括住目錄名稱，也 一樣可以用 CD 命令切換到該目錄。例如:  &nbsp;&nbsp;&nbsp; cd \winnt\profiles\username\programs\start menu  就相等於:  &nbsp;&nbsp;&nbsp; cd &quot;\winnt\profiles\username\programs\start menu&quot;     感覺起來Vista對於 / 的處理似乎不是很一致。  ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 偶然發現Windows Vista對於<span style="font-weight: bold">路徑</span>（Path） 的處理有些小小擴充，以下是我的測試。<br /> <br /> 原本Windows的路徑分隔字元是反斜線（＼），如果輸入Unix的正斜線（／）路徑的話，在DOS視窗裡會顯示「指令語法不正確。」的錯誤訊息，而 Vista已能在<span style="font-weight: bold">部份</span>場合使 用正斜線了。<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"> <tbody> <tr> <td style="font-weight: bold; text-align: center; background-color: #ccffff">DOS 命令</td> <td style="font-weight: bold; text-align: center; background-color: #ccffff">執 行如果</td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; cd c:/users/jerry/AppData</td> <td style="background-color: #ffffcc">能成功 切換資料夾</td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; dir c:/users/jerry/AppData</td> <td style="background-color: #ffffcc">無效的 參數 - &quot;users&quot;.</td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; dir &quot;c:/users/jerry/AppData&quot;</td> <td style="background-color: #ffffcc">加上雙 引號就OK</td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; md a/b/c/d</td> <td style="background-color: #ffffcc">命令語 法不正確。</td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; md &quot;a/b/c/d&quot;</td> <td style="background-color: #ffffcc">這樣可 以成功</td> </tr> </tbody> </table> <br /> 另外，路徑字串裡帶有空白的CD指令處理也有不同，以前版本必須用雙引號夾住帶空白的路徑字俓，Vista則會忽略空白，因此可以不使用雙引號：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"> <tbody> <tr> <td style="font-weight: bold; text-align: center; background-color: #ccffff">DOS 命令</td> <td style="font-weight: bold; text-align: center; background-color: #ccffff">執行結果</td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; md &quot;this is a test&quot;</td> <td style="background-color: #ffffcc">建立帶有空白名稱的資料夾<br /> </td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; cd &quot;this is a test&quot;</td> <td style="background-color: #ffffcc">這樣原本就可以<br /> </td> </tr> <tr> <td style="background-color: #ffffcc">&nbsp; cd this is a test</td> <td style="background-color: #ffffcc">vista 這樣也可以成功<br /> </td> </tr> </tbody> </table> <br /> 用 cd /? 就可以看到如下的說明，空格不當成分隔字元：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #339999; width: 100%"> <tbody> <tr> <td style="background-color: #000000"><span style="color: #33ff33; font-family: Arial">CHDIR 命令不會將空格當成分隔字元，所以如果您要切換到含</span><br /> <span style="color: #33ff33; font-family: Arial">有空格字元的目錄時，就算您不使用引號來括住目錄名稱，也</span><br /> <span style="color: #33ff33; font-family: Arial">一樣可以用 CD 命令切換到該目錄。例如:</span><br /> <br /> <span style="color: #33ff33; font-family: Arial">&nbsp;&nbsp;&nbsp; cd \winnt\profiles\username\programs\start menu</span><br /> <br /> <span style="color: #33ff33; font-family: Arial">就相等於:</span><br /> <br /> <span style="color: #33ff33; font-family: Arial">&nbsp;&nbsp;&nbsp; cd &quot;\winnt\profiles\username\programs\start menu&quot;</span></td> </tr> </tbody> </table> <br /> 感覺起來Vista對於 / 的處理似乎不是很一致。<br /> <br /> ##<iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5842287.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5842287.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 10 Apr 2008 23:29:10 +0800</pubDate>
</item>
<item>
	<title>Vista資料夾連接點運用實務</title>
	<description><![CDATA[
			 我在[Vista] 符號連結(Symbolic/Soft Link)、永久連結(Hard Link)與連接點(Junction Point)這 篇文章大費周章的簡介了各種連結的觀念，那麼連結對日常的Windows操作會有什麼用處呢？  最簡單的應用就是把常用的目錄建立成連接點(Junction Point)，這樣可以方便地做資料夾切換。例如： Blog文章存放格式是c:\Users\使 用者\documents\blog\YYYY\MM，依年度(YYYY)與月份(MM)分開存放某個專案的行銷文件與規劃文件分別存放於 d:\Projects\專案名稱\文件\Marketing和d:\Projects \專案名稱\文件\Planning 在沒有使用連結的情況時，要切換資料夾必須做多次的Click或輸入較長的路徑名稱，而只要建立幾個連結就能簡化許多。首先我們建立一個專門存放連結的資 料夾 c:\ln (ln是Link 的意思，Unix用來建立連結的指令名)，再用mklink.exe建 立連結：     &nbsp; mklink /J &nbsp;c:\ln\blog &nbsp;c:\Users\jerry\documents\blog\2008\04 &nbsp; mklink /J &nbsp;c:\ln\mk &nbsp;d:\Projects\GogogoProject\文件\Marketing &nbsp; mklink /J &nbsp;c:\ln\pln &nbsp;d:\Projects\GogogoProject\文件\Planning     如果年度、月份或主要的工作專案有變動，只要重建連結就能繼續使用已經習慣了的連結名稱：     &nbsp; mklink /J &nbsp;c:\ln\blog &nbsp;c:\Users\jerry\documents\blog\2008\05 &nbsp; mklink /J &nbsp;c:\ln\mk &nbsp;d:\Projects\NextProject\文件\Marketing &nbsp; mklink /J &nbsp;c:\ln\pln &nbsp;d:\Projects\NextProject\文件\Planning     建立好連結後就能直接用c:\ln裡的連結名稱來切換資料夾了，如：     &nbsp;&nbsp;cd &nbsp;c:\ln\blog &nbsp; cd &nbsp;c:\ln\mk &nbsp; cd &nbsp;c:\ln\pln &nbsp; copy c:\ln\blog\file1.txt e:\usb\backup\file1.txt &nbsp; winword c:\log\pln\schedule02.doc     雖然看到的目錄名稱是較短的連結名稱，但實體目錄卻是完整名稱的那個目錄；除了在DOS視窗裡運用，檔案總管理也能照常使用。如果你的文件存放 Layout是深層式的，那麼熟練mklink後，連結會是你的好朋友的。  ##  
		]]>
	</description>
	<content:encoded><![CDATA[
			 我在<a href="http://blog.xuite.net/emisjerry/tech/16542894" target="_blank"><span class="titlename">[Vista] 符號連結(Symbolic/Soft Link)、永久連結(Hard Link)與連接點(Junction Point)</span></a>這 篇文章大費周章的簡介了各種連結的觀念，那麼連結對日常的Windows操作會有什麼用處呢？<br /> <br /> 最簡單的應用就是把常用的目錄建立成連接點(Junction Point)，這樣可以方便地做資料夾切換。例如：<br /> <ul><li>Blog文章存放格式是<span style="font-style: italic; color: #990000">c:\Users\使 用者\documents\blog\YYYY\MM</span>，依年度(YYYY)與月份(MM)分開存放</li><li>某個專案的行銷文件與規劃文件分別存放於<span style="font-style: italic; color: #990000"> d:\Projects\專案名稱\文件\Marketing</span>和<span style="font-style: italic; color: #990000">d:\Projects \專案名稱\文件\Planning</span></li></ul> 在沒有使用連結的情況時，要切換資料夾必須做多次的Click或輸入較長的路徑名稱，而只要建立幾個連結就能簡化許多。首先我們建立一個專門存放連結的資 料夾 c:\ln (<span style="font-weight: bold">ln</span>是Link 的意思，Unix用來建立連結的指令名)，再用<span style="font-weight: bold">mklink.exe</span>建 立連結：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"> <tbody> <tr> <td style="background-color: #ffffcc"> &nbsp; mklink /J &nbsp;c:\ln\blog &nbsp;c:\Users\jerry\documents\blog\2008\04<br /> &nbsp; mklink /J &nbsp;c:\ln\mk &nbsp;d:\Projects\GogogoProject\文件\Marketing<br /> &nbsp; mklink /J &nbsp;c:\ln\pln &nbsp;d:\Projects\GogogoProject\文件\Planning</td> </tr> </tbody> </table> <br /> 如果年度、月份或主要的工作專案有變動，只要重建連結就能繼續使用已經習慣了的連結名稱：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"> <tbody> <tr> <td style="background-color: #ffffcc"> &nbsp; mklink /J &nbsp;c:\ln\blog &nbsp;c:\Users\jerry\documents\blog\2008\05<br /> &nbsp; mklink /J &nbsp;c:\ln\mk &nbsp;d:\Projects\NextProject\文件\Marketing<br /> &nbsp; mklink /J &nbsp;c:\ln\pln &nbsp;d:\Projects\NextProject\文件\Planning</td> </tr> </tbody> </table> <br /> 建立好連結後就能直接用c:\ln裡的連結名稱來切換資料夾了，如：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"> <tbody> <tr> <td style="background-color: #ffffcc"> &nbsp;&nbsp;cd &nbsp;c:\ln\blog<br /> &nbsp; cd &nbsp;c:\ln\mk<br /> &nbsp; cd &nbsp;c:\ln\pln<br /> &nbsp; copy c:\ln\blog\file1.txt e:\usb\backup\file1.txt<br /> &nbsp; winword c:\log\pln\schedule02.doc</td> </tr> </tbody> </table> <br /> 雖然看到的目錄名稱是較短的連結名稱，但實體目錄卻是完整名稱的那個目錄；除了在DOS視窗裡運用，檔案總管理也能照常使用。如果你的文件存放 Layout是深層式的，那麼熟練mklink後，連結會是你的好朋友的。<br /> <br /> ##<br /> <iframe width="100%" height="400" frameborder="0" scrolling="yes" src="http://jdev.tw/blogs/vista.html"></iframe> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5833121.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5833121.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Tue, 08 Apr 2008 23:10:54 +0800</pubDate>
</item>
<item>
	<title>Vista與數位相機</title>
	<description><![CDATA[
			因 手邊沒有以前版本的Windows能比對，但印象中數位相機在連線後是能以磁碟裝置來操作，並可指派一個磁碟代號，這樣所有檔案系統的處理都能正常運作。 但Windows Vista似乎改變了這個作法，連線後在電腦裡會出現獨立的數位相機裝置，和磁碟裝置是分開的，也沒辦法指定磁碟代號，造成的結果是部份程式無法直接讀取 數位相機裡的檔案內容了。  例如新安裝了最新的GIMP 2.4.5來修改圖片，開啟檔案就沒辦法直接讀取數位相機，Vista內建的相片圖庫或Google Picasa2則能用匯入把相機裡的檔案匯到硬碟上。  不知這是我的數位相機(Canon DIGITAL IXUS 960IS)驅動的特有狀況或是新的特性，不過，以前的磁碟代號操作似乎是較合人性的作法吧。  ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			<a href="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXHwN0b4vaAVosD8InzUmUtwgVWa_kIg7YGmE2aRBrEBLXRn7F8Jhpspj3nxJkFkWrKhw95Y8iO0oDiFMx1wqp6O/Canon%20960.png" target="_blank"><img src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXHwN0b4vaAVosD8InzUmUtwgVWa_kIg7YGgsyH2Tvl-eNavoGO-RZv-53POwg-IzXW_WDVXpDnashRrZ_2y7sB6/Canon%20960.png" alt="" hspace="20" align="left" /></a>因 手邊沒有以前版本的Windows能比對，但印象中數位相機在連線後是能以磁碟裝置來操作，並可指派一個磁碟代號，這樣所有檔案系統的處理都能正常運作。 但Windows Vista似乎改變了這個作法，連線後在電腦裡會出現獨立的數位相機裝置，和磁碟裝置是分開的，也沒辦法指定磁碟代號，造成的結果是部份程式無法直接讀取 數位相機裡的檔案內容了。<br /> <br /> 例如新安裝了最新的<a href="http://www.gimp.org/" target="_blank">GIMP 2.4.5</a>來修改圖片，開啟檔案就沒辦法直接讀取數位相機，Vista內建的相片圖庫或Google Picasa2則能用匯入把相機裡的檔案匯到硬碟上。<br /> <br /> 不知這是我的數位相機(Canon DIGITAL IXUS 960IS)驅動的特有狀況或是新的特性，不過，以前的磁碟代號操作似乎是較合人性的作法吧。<br /> <br /> ##<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5821557.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5821557.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 06 Apr 2008 23:30:38 +0800</pubDate>
</item>
<item>
	<title>[Windows] 以Shell命令開啟系統目錄</title>
	<description><![CDATA[
			原來Windows有個切換系統常用目錄的簡便命令－稱為Shell命令，這類命令我在Windows 2000、Windows 2003 Server上試過都能正常執行，想必Windows XP也能運作才是。Shell命令的語法是以shell開頭，再接半形冒號，最後是要開啟的系統目錄：「shell:目錄」，執行後檔案總管會自動開啟並切換資料夾到指定的目錄位置。在Vista裡有4個地方都能使用：1. 在開始功能表下方的搜尋框裡執行2. 在檔案總管的位置區裡執行。舊版Windows的檔案總管「網址」欄也能執行。3. 按〔Win+R〕在執行視窗裡執行4.&nbsp;在DOS命令視窗裡用 start shell:目錄 方式執行能使用的系統目錄彙總如下：shell:AddNewProgramsFolder - Opens the Install a program from the network location.shell:Administrative Tools - Opens the Administrative Tools section of the Control Panel.shell:AppData - Opens the hidden location C:\Users\(your username)\AppData\Roamingshell:AppUpdatesFolder - Opens the Installed Windows Updates location in Program and Files.shell:Cache - Opens Internet Explorer&rsquo;s temporary internet files folder.shell:CD Burning - Opens the location where files are stored temporarily before Windows Vista burns them.shell:ChangeRemoveProgramsFolder - Opens Programs and Features in the Control Panel.shell:Common Administrative Tools - Opens the Administrative Tools section of the Control Panel.shell:Common AppData - Opens the hidden location C:\ProgramDatashell:Common Desktop - Opens the Public Users Desktop folder location. C:\Users\Public\Desktopshell:Common Documents - Opens the Public Users Documents folder location. C:\Users\Public\Documentsshell:Common Programs - Opens the Start menu shortcuts location.shell:Common Start Menu - Opens the location of the shortcut links in your Start Menu.shell:Common Startup - Opens the location where shortcuts to programs that are set to start when Vista boots up are saved.shell:Common Templates - Opens C:\ProgramData\Microsoft\Windows\Templatesshell:CommonDownloads - Opens the Public Users Downloads folder location. C:\Users\Public\Downloadsshell:CommonMusic - Opens the Public Users Music folder location. C:\Users\Public\Musicshell:CommonPictures - Opens the Public Users Pictures folder location. C:\Users\Public\Picturesshell:CommonVideo - Opens the Public Users Video folder location. C:\Users\Public\Videosshell:ConflictFolder - Opens the Sync Center Conflicts location.shell:ConnectionsFolder - Quickly open Network Connections.shell:Contacts - Opens your username's Contacts folder location.shell:ControlPanelFolder - Opens the Control Panel.shell:Cookies - Opens one of the folders where Internet Explorer saves cookies.shell:Cookies\Low - Opens the other folder where Internet Explorer saves cookies.shell:CredentialManager - Opens the hidden C:\Users\(your username)\AppData\Roaming\ Microsoft\Credentialsshell:CryptoKeys - Opens the hidden C:\Users\(your username)\AppData\Roaming\Microsoft\Cryptoshell:CSCFoldershell:default Gadgets - Opens the default Windows Sidebar Gadgets location.shell:desktop - Opens your personal username's Desktop folder location.shell:downloads - Opens your personal username's Downloads folder location.shell:dpapiKeys - Opens the hidden C:\Users\(your username)\AppData\Roaming\Microsoft\Protectshell:Favorites - Opens your personal username's Favorites folder location.shell:Fonts - Opens Vista's Fonts folder location.shell:Gadgets - Opens your user account's Windows Sidebar Gadgets that you saved location.shell:Games - Opens the Games folder from the left Start menu button location.shell:GameTasks - Opens the hidden C:\Users\(your username)\AppData\Local\Microsoft\Windows\ GameExplorershell:History - Opens Internet Explorer&rsquo;s history of websites visited.shell:InternetFolder Opens the 32 bit Internet Explorer.shell:Links - Opens your personal username's Links folder location.shell:Local AppData Opens the hidden C:\Users\(your username)\AppData\Localshell:LocalAppDataLow - Opend the hidden C:\Users\(your username)\AppData\LocalLowshell:LocalizedResourcesDirshell:MAPIFoldershell:My Music - Opens your personal username's Music folder location.shell:My Pictures - Opens your personal username's Pictures folder location.shell:My Video - Opens your personal username's Video folder location.shell:MyComputerFolder - Opens Computer window.shell:NetHood - Opens Network Shortcuts folder location.shell:NetworkPlacesFolder Opens the Network Places location.shell:OEM Links - Opens the links placed on your computer by your computer manufacturer location.shell:Original Images - Opens Windows Photo Gallery Original Images folder location.shell:Personal - Opens your personal username's Documents folder location.shell:PhotoAlbums - Opens the Slide Show folder location for your username's Pictures folder.shell:Playlists - Opens the Playlists folder location for your username's Music folder.shell:PrintersFolder - Opens Printers in the Control Panel.shell:PrintHood - Opens the Printer Shortcuts location.shell:Profile - Opens your main username folder location.shell:ProgramFiles - Opens the Program Files folder.shell:ProgramFilesCommon - Opens the Common Files folder in Program Files.shell:ProgramFilesCommonX86 - Opens the Common Files folder in Program Files (x86).shell:ProgramFilesX86 - Opens the Program Files (x86) folder.shell:Programs - Opens the Start menu's Programs shortcuts location.shell:Public - Opens the Public User folder.shell:PublicGameTasks - Opens C:\ProgramData\Microsoft\Windows\GameExplorershell:Quick Launch - Opens the Quick Launch shortcuts folder location.shell:Recent - Opens Recent Items location.shell:RecycleBinFolder - Opens the Recycle Bin folder.shell:ResourceDir - Opens Vista's Resources folder location.shell:SampleMusic - Opens the Sample Music folder in the Public Users folder.shell:SamplePictures - Opens the Sample Pictures folder in the Public Users folder.shell:SamplePlaylists - Opens the Sample Playlist folder in the Public Users folder.shell:SampleVideos - Opens the Sample Videos folder in the Public Users folder.shell:SavedGames - Opens your personal username's Saved Games folder location.shell:Searches - Opens your personal username's Searches folder location.shell:SendTo - Opens the Context menu's SendTo folder location.shell:Start Menu - Opens the location of the shortcut links in your Start Menu.shell:Startup - Opens the location where shortcuts to programs that are set to start when Vista boots up are saved.shell:SyncCenterFolder - Opens Sync Center from the Control Panel.shell:SyncResultsFolder - Opens the Sync Results for the Sync Center.shell:SyncSetupFolder - Open the Setup new sync partnerships in the Sync Center.shell:System - Opens the System32 folder location.shell:SystemCertificates Opens the SystemCertificates folder location.shell:SystemX86 - Opens the SysWowxx folder location.shell:Templates - Opens the Templates folder location.shell:TreePropertiesFoldershell:UserProfiles - Opens the &quot;C:\Users&quot; location.shell:UsersFilesFolder - Opens your main username folder location.shell:Windows - Opens the &quot;C:\Windows&quot; location.參考：How to Use the Vista Shell Command##
		]]>
	</description>
	<content:encoded><![CDATA[
			原來Windows有個切換系統常用目錄的簡便命令－稱為<span style="font-weight: bold">Shell命令</span>，這類命令我在Windows 2000、Windows 2003 Server上試過都能正常執行，想必Windows XP也能運作才是。Shell命令的語法是以shell開頭，再接半形冒號，最後是要開啟的系統目錄：「<span style="font-weight: bold">shell:目錄</span>」，執行後<span style="font-weight: bold">檔案總管</span>會自動開啟並切換資料夾到指定的目錄位置。在Vista裡有4個地方都能使用：<br /><br />1. 在開始功能表下方的搜尋框裡執行<br /><br /><img style="width: 513px; height: 760px" src="http://1eddqg.bay.livefilestore.com/y1p4vAaHNH_ynqop3HjBtcfvFzV-zLTA4HFm9kA1BapBa2fDw69GWQZbjpi3a9U2kJjFQoye8uPLLSr8899Ph0JEQ/shell-command.png" alt="shell-command-1" /><br /><br />2. 在檔案總管的位置區裡執行。舊版Windows的檔案總管「網址」欄也能執行。<br /><br /><img style="width: 731px; height: 444px" src="http://1eddqg.bay.livefilestore.com/y1p4vAaHNH_ynox82iso-judCnCq8tS2mHHHQonCRr6fKtShTa4iYhR39BD6Y1F_DDv3OzejhLNkENrWF-USND8Ew/shell-command2.png" alt="shell-command-2" /><br /><br /><br />3. 按〔Win+R〕在執行視窗裡執行<br /><br /><img style="width: 547px; height: 292px" src="http://1eddqg.bay.livefilestore.com/y1p4vAaHNH_ynp0u2U_Uqzi0jBT2jhruw6Vap6iE9qKMjQbne1DdwiS92b-o15m6g1rpchwS54v5PAduKWLV-IMIw/shell-command3.png" alt="shell-command-3" /><br /><br />4.&nbsp;在DOS命令視窗裡用<span style="font-weight: bold"> start shell:目錄 </span>方式執行<br /><br />能使用的系統目錄彙總如下：<br /><ul><li><strong>shell:AddNewProgramsFolder</strong> - Opens the Install a program from the network location.</li><li><strong>shell:Administrative Tools</strong> - Opens the Administrative Tools section of the Control Panel.</li><li><strong>shell:AppData</strong> - Opens the hidden location C:\Users\(your username)\AppData\Roaming</li><li><strong>shell:AppUpdatesFolder</strong> - Opens the Installed Windows Updates location in Program and Files.</li><li><strong>shell:Cache</strong> - Opens Internet Explorer&rsquo;s temporary internet files folder.</li><li><strong>shell:CD Burning</strong> - Opens the location where files are stored temporarily before Windows Vista burns them.</li><li><strong>shell:ChangeRemoveProgramsFolder</strong> - Opens Programs and Features in the Control Panel.</li><li><strong>shell:Common Administrative Tools</strong> - Opens the Administrative Tools section of the Control Panel.</li><li><strong>shell:Common AppData</strong> - Opens the hidden location C:\ProgramData</li><li><strong>shell:Common Desktop</strong> - Opens the Public Users Desktop folder location. C:\Users\Public\Desktop</li><li><strong>shell:Common Documents</strong> - Opens the Public Users Documents folder location. C:\Users\Public\Documents</li><li><strong>shell:Common Programs</strong> - Opens the Start menu shortcuts location.</li><li><strong>shell:Common Start Menu</strong> - Opens the location of the shortcut links in your Start Menu.</li><li><strong>shell:Common Startup</strong> - Opens the location where shortcuts to programs that are set to start when Vista boots up are saved.</li><li><strong>shell:Common Templates</strong> - Opens C:\ProgramData\Microsoft\Windows\Templates</li><li><strong>shell:CommonDownloads</strong> - Opens the Public Users Downloads folder location. C:\Users\Public\Downloads</li><li><strong>shell:CommonMusic</strong> - Opens the Public Users Music folder location. C:\Users\Public\Music</li><li><strong>shell:CommonPictures</strong> - Opens the Public Users Pictures folder location. C:\Users\Public\Pictures</li><li><strong>shell:CommonVideo</strong> - Opens the Public Users Video folder location. C:\Users\Public\Videos</li><li><strong>shell:ConflictFolder</strong> - Opens the Sync Center Conflicts location.</li><li><strong>shell:ConnectionsFolder</strong> - Quickly open Network Connections.</li><li><strong>shell:Contacts</strong> - Opens your username's Contacts folder location.</li><li><strong>shell:ControlPanelFolder</strong> - Opens the Control Panel.</li><li><strong>shell:Cookies</strong> - Opens one of the folders where Internet Explorer saves cookies.</li><li><strong>shell:Cookies\Low -</strong> Opens the other folder where Internet Explorer saves cookies.</li><li><strong>shell:CredentialManager</strong> - Opens the hidden C:\Users\(your username)\AppData\Roaming\<br /> Microsoft\Credentials</li><li><strong>shell:CryptoKeys</strong> - Opens the hidden C:\Users\(your username)\AppData\Roaming\Microsoft\Crypto</li><li><strong>shell:CSCFolder</strong></li><li><strong>shell:default Gadgets</strong> - Opens the default Windows Sidebar Gadgets location.</li><li><strong>shell:desktop</strong> - Opens your personal username's Desktop folder location.</li><li><strong>shell:downloads</strong> - Opens your personal username's Downloads folder location.</li><li><strong>shell:dpapiKeys</strong> - Opens the hidden C:\Users\(your username)\AppData\Roaming\Microsoft\Protect</li><li><strong>shell:Favorites</strong> - Opens your personal username's Favorites folder location.</li><li><strong>shell:Fonts</strong> - Opens Vista's Fonts folder location.</li><li><strong>shell:Gadgets</strong> - Opens your user account's Windows Sidebar Gadgets that you saved location.</li><li><strong>shell:Games</strong> - Opens the Games folder from the left Start menu button location.</li><li><strong>shell:GameTasks</strong> - Opens the hidden C:\Users\(your username)\AppData\Local\Microsoft\Windows\<br /> GameExplorer</li><li><strong>shell:History</strong> - Opens Internet Explorer&rsquo;s history of websites visited.</li><li><strong>shell:InternetFolder</strong> Opens the 32 bit Internet Explorer.</li><li><strong>shell:Links</strong> - Opens your personal username's Links folder location.</li><li><strong>shell:Local AppData</strong> Opens the hidden C:\Users\(your username)\AppData\Local</li><li><strong>shell:LocalAppDataLow</strong> - Opend the hidden C:\Users\(your username)\AppData\LocalLow</li><li><strong>shell:LocalizedResourcesDir</strong></li><li><strong>shell:MAPIFolder</strong></li><li><strong>shell:My Music</strong> - Opens your personal username's Music folder location.</li><li><strong>shell:My Pictures</strong> - Opens your personal username's Pictures folder location.</li><li><strong>shell:My Video</strong> - Opens your personal username's Video folder location.</li><li><strong>shell:MyComputerFolder</strong> - Opens Computer window.</li><li><strong>shell:NetHood</strong> - Opens Network Shortcuts folder location.</li><li><strong>shell:NetworkPlacesFolder</strong> Opens the Network Places location.</li><li><strong>shell:OEM Links</strong> - Opens the links placed on your computer by your computer manufacturer location.</li><li><strong>shell:Original Images</strong> - Opens Windows Photo Gallery Original Images folder location.</li><li><strong>shell:Personal</strong> - Opens your personal username's Documents folder location.</li><li><strong>shell:PhotoAlbums</strong> - Opens the Slide Show folder location for your username's Pictures folder.</li><li><strong>shell:Playlists</strong> - Opens the Playlists folder location for your username's Music folder.</li><li><strong>shell:PrintersFolder</strong> - Opens Printers in the Control Panel.</li><li><strong>shell:PrintHood</strong> - Opens the Printer Shortcuts location.</li><li><strong>shell:Profile</strong> - Opens your main username folder location.</li><li><strong>shell:ProgramFiles</strong> - Opens the Program Files folder.</li><li><strong>shell:ProgramFilesCommon</strong> - Opens the Common Files folder in Program Files.</li><li><strong>shell:ProgramFilesCommonX86</strong> - Opens the Common Files folder in Program Files (x86).</li><li><strong>shell:ProgramFilesX86</strong> - Opens the Program Files (x86) folder.</li><li><strong>shell:Programs</strong> - Opens the Start menu's Programs shortcuts location.</li><li><strong>shell:Public</strong> - Opens the Public User folder.</li><li><strong>shell:PublicGameTasks</strong> - Opens C:\ProgramData\Microsoft\Windows\GameExplorer</li><li><strong>shell:Quick Launch</strong> - Opens the Quick Launch shortcuts folder location.</li><li><strong>shell:Recent</strong> - Opens Recent Items location.</li><li><strong>shell:RecycleBinFolder</strong> - Opens the Recycle Bin folder.</li><li><strong>shell:ResourceDir</strong> - Opens Vista's Resources folder location.</li><li><strong>shell:SampleMusic</strong> - Opens the Sample Music folder in the Public Users folder.</li><li><strong>shell:SamplePictures</strong> - Opens the Sample Pictures folder in the Public Users folder.</li><li><strong>shell:SamplePlaylists</strong> - Opens the Sample Playlist folder in the Public Users folder.</li><li><strong>shell:SampleVideos</strong> - Opens the Sample Videos folder in the Public Users folder.</li><li><strong>shell:SavedGames</strong> - Opens your personal username's Saved Games folder location.</li><li><strong>shell:Searches</strong> - Opens your personal username's Searches folder location.</li><li><strong>shell:SendTo</strong> - Opens the Context menu's SendTo folder location.</li><li><strong>shell:Start Menu</strong> - Opens the location of the shortcut links in your Start Menu.</li><li><strong>shell:Startup</strong> - Opens the location where shortcuts to programs that are set to start when Vista boots up are saved.</li><li><strong>shell:SyncCenterFolder</strong> - Opens Sync Center from the Control Panel.</li><li><strong>shell:SyncResultsFolder</strong> - Opens the Sync Results for the Sync Center.</li><li><strong>shell:SyncSetupFolder</strong> - Open the Setup new sync partnerships in the Sync Center.</li><li><strong>shell:System</strong> - Opens the System32 folder location.</li><li><strong>shell:SystemCertificates</strong> Opens the SystemCertificates folder location.</li><li><strong>shell:SystemX86</strong> - Opens the SysWowxx folder location.</li><li><strong>shell:Templates</strong> - Opens the Templates folder location.</li><li><strong>shell:TreePropertiesFolder</strong></li><li><strong>shell:UserProfiles</strong> - Opens the &quot;C:\Users&quot; location.</li><li><strong>shell:UsersFilesFolder</strong> - Opens your main username folder location.</li><li><strong>shell:Windows</strong> - Opens the &quot;C:\Windows&quot; location.</li></ul>參考：<a href="http://www.vistax64.com/tutorials/91188-shell-command.html" target="_blank">How to Use the Vista Shell Command</a><br /><br />##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5812595.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5812595.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 04 Apr 2008 23:44:37 +0800</pubDate>
</item>
<item>
	<title>[Vista] 符號連結(Symbolic/Soft Link)、永久連結(Hard Link)與連接點(Junction Point)</title>
	<description><![CDATA[
			Vista強化了類似Unix的符號連結(Symbolic Link，又稱Soft Link)與永久連結(Hard Link)的概念，由於我參考的網路資源大都語焉不詳，讓人越看越糊塗，因此試著以我的理解呈現出來，若有謬誤還請讀者們指正。我 們由圖形來對照不同連結的觀念。在作業系統裡要開啟任何檔案都必須先由檔案配置表(File Allocation Table，FAT，Vista裡不清楚有無別的名詞來表示)裡找到檔案項目(Entry)，再由該項目查出相關屬性後，再連結到實體的內容磁區，就能讀 取其檔案內容。如果我們建立一個永久連結，在FAT裡新建的連結檔名同樣會連結到內容磁區(紅線)。如果OldFileName被刪除，但因為NewHardLink仍然存在，因此其內容仍會保留在系統裡。如果修改OldFileName的內容，則因為NewHardLink也指向同一個內容磁區，因此其內容也同步變動了OldFileName與NewHardLink都刪除，內容磁區才會被清除而符號連結則只是存在於FAT裡的一個項目而已，亦即NewSoftLink是一個指向OldFileName項目的指標(藍線)，如果OldFileName被改名或刪除，則NewSoftLink就找不到內容了。觀念清楚後，再來看Vista裡建立連結的指令。Vista裡用來建立連結的指令是mklink.exe(Make Link)，使用語法如下：  mklink [[/d] | [/h] | [/j]] &lt;Link&gt; &lt;Target&gt;參數說明類型限制&nbsp;如果沒有加任何參數時，預設建立的是檔案的符號連結捷徑 &lt;SYMBOL&gt;&nbsp;/d建立目錄的符號連結捷徑 &lt;SYMBOLD&gt;&nbsp;/j建錄目錄的連接點(Junction point)。&lt;JUNCTION&gt; 捷徑圖示，但由「內容」看並無捷徑頁籤&nbsp;/h建立檔案的永久連結。若操作對象是目錄的話會出現【存取被拒】的錯誤訊息一般檔案只能對本機的NTFS磁碟操作&lt;Link&gt;：要建立的連結名稱 (圖形裡的NewHardLink與NewSoftLink)&lt;Target&gt;：被連結的目標，可以是實體目錄或檔案的完整或部份路徑 (圖形裡的OldFileName)範例：  rem 檔案符號連結  mklink c:\ln\soft-file.txt e:\USB\Project1\source\test.txt  rem 目錄符號連結  mklink /D c:\ln\soft-dir c:\Users\jerry\Documents  rem 目錄永久連結  mklink /H c:\ln\hard-file.txt c:\users\jerry\Documents\test.txt  rem Junction Point  mklink /J c:\ln\jp-dir c:\Users\jerry\Recent上列指令執行後的結果：永久連結和檔案符號連結建立了兩個檔案(紅框)，目錄符號連結和連接點是兩個目錄，再加上目前目錄的點( . )和代表上層目錄的兩個點( .. )總共四個目錄(淺藍框)。由檔案總管理無法很清楚的看出各種連結的類型，使用dir &nbsp;/aL 才能很清楚的到&lt;SYMBOL&gt;、&lt;JUNCTION&gt;等類型。以下是使用 dir /s /aL c:\ 列出Vista輸出的內容。由其內容可以看出幾個重點：為了和Windows以前版本相容，C:\Documents and Settings是新建的連接點，目標是C:\Users連接點大量用來建立指向同一個目錄的多個名稱&nbsp;磁碟區 C 中的磁碟是 20080322&nbsp;磁碟區序號:&nbsp; 8C99-6FAB&nbsp;C:\ 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Documents and Settings [C:\Users]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\ProgramData 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\ProgramData]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Desktop [C:\Users\Public\Desktop]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Documents [C:\Users\Public\Documents]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Favorites [C:\Users\Public\Favorites]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\ProgramData\Microsoft\Windows\Templates]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;SYMLINKD&gt;&nbsp;&nbsp;&nbsp;&nbsp; All Users [C:\ProgramData]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Default User [C:\Users\Default]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\All Users 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\ProgramData]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Desktop [C:\Users\Public\Desktop]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Documents [C:\Users\Public\Documents]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Favorites [C:\Users\Public\Favorites]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\ProgramData\Microsoft\Windows\Templates]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\Default 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\Default\AppData\Roaming]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Cookies [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Cookies]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Local Settings [C:\Users\Default\AppData\Local]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Documents [C:\Users\Default\Documents]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; NetHood [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Network Shortcuts]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; PrintHood [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Printer Shortcuts]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Recent [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Recent]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; SendTo [C:\Users\Default\AppData\Roaming\Microsoft\Windows\SendTo]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Start Menu [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Templates]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\Default\AppData\Local 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\Default\AppData\Local]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; History [C:\Users\Default\AppData\Local\Microsoft\Windows\History]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Temporary Internet Files [C:\Users\Default\AppData\Local\Microsoft\Windows\Temporary Internet Files]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\Default\Documents 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Music [C:\Users\Default\Music]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Pictures [C:\Users\Default\Pictures]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Videos [C:\Users\Default\Videos]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\jerry 的目錄2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\jerry\AppData\Roaming]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Cookies [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Cookies]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Local Settings [C:\Users\jerry\AppData\Local]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Documents [C:\Users\jerry\Documents]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; NetHood [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Network Shortcuts]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; PrintHood [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Printer Shortcuts]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Recent [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Recent]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; SendTo [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\SendTo]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Templates]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; 「開始」功能表 [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Start Menu]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\jerry\AppData\Local 的目錄2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\jerry\AppData\Local]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; History [C:\Users\jerry\AppData\Local\Microsoft\Windows\History]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Temporary Internet Files [C:\Users\jerry\AppData\Local\Microsoft\Windows\Temporary Internet Files]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Start Menu 的目錄2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; 程式集 [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Start Menu\Programs]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\jerry\Documents 的目錄2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Music [C:\Users\jerry\Music]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Pictures [C:\Users\jerry\Pictures]2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Videos [C:\Users\jerry\Videos]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;C:\Users\Public\Documents 的目錄2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Music [C:\Users\Public\Music]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Pictures [C:\Users\Public\Pictures]2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Videos [C:\Users\Public\Videos]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;&nbsp;&nbsp;&nbsp; 檔案數目總計:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 51 個目錄&nbsp; 102,296,236,032 位元組可用參考：In Unix, what is a symbolic link, and how do I create one?In Unix, what is a hard link?NTFS junction pointVista's symbolic links feature saves navigating timeWindows的12种快捷方式（2007-4-3修?版）##
		]]>
	</description>
	<content:encoded><![CDATA[
			<img style="width: 400px; height: 148px; float: left" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXH_s0dyHzuADnLLsvdfLMHWBj_wI9NDWu20_v0lAdPBBFZRCkoECBbwmcMVz7ijPqhXyUKGyz1fLmAwIX3PJDyt/mklink.png" alt="mklink" hspace="20" vspace="10" />Vista強化了類似Unix的<span style="font-weight: bold">符號連結</span>(Symbolic Link，又稱Soft Link)與<span style="font-weight: bold">永久連結</span>(Hard Link)的概念，由於我參考的網路資源大都語焉不詳，讓人越看越糊塗，因此試著以我的理解呈現出來，若有謬誤還請讀者們指正。<br /><br />我 們由圖形來對照不同連結的觀念。在作業系統裡要開啟任何檔案都必須先由檔案配置表(File Allocation Table，FAT，Vista裡不清楚有無別的名詞來表示)裡找到檔案項目(Entry)，再由該項目查出相關屬性後，再連結到實體的內容磁區，就能讀 取其檔案內容。如果我們建立一個永久連結，在FAT裡新建的連結檔名同樣會連結到內容磁區(紅線)。<br /><ul><li>如果OldFileName被刪除，但因為NewHardLink仍然存在，因此其內容仍會保留在系統裡。</li><li>如果修改OldFileName的內容，則因為NewHardLink也指向同一個內容磁區，因此其內容也同步變動了</li><li>OldFileName與NewHardLink都刪除，內容磁區才會被清除</li></ul>而符號連結則只是存在於FAT裡的一個項目而已，亦即NewSoftLink是一個指向OldFileName項目的指標(藍線)，如果OldFileName被改名或刪除，則NewSoftLink就找不到內容了。<br />觀念清楚後，再來看Vista裡建立連結的指令。Vista裡用來建立連結的指令是<span style="font-weight: bold">mklink.exe</span>(Make Link)，使用語法如下：<br /><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"><tbody><tr><td style="background-color: #ffffcc"><pre class="codeSample">  mklink [[/d] | [/h] | [/j]] &lt;Link&gt; &lt;Target&gt;</pre></td></tr></tbody></table><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3333ff; width: 100%"><tbody><tr><td style="background-color: #009900; color: #ffffff; font-weight: bold; text-align: center; width: 60px">參數</td><td style="background-color: #009900; color: #ffffff; font-weight: bold; text-align: center; width: 302px">說明</td><td style="background-color: #009900; font-weight: bold; text-align: center; width: 302px"><span style="color: #ffffff">類型</span></td><td style="background-color: #009900; text-align: center; width: 241px"><span style="color: #ffffff; font-weight: bold">限制</span></td></tr><tr><td style="background-color: #ffffcc; width: 60px">&nbsp;</td><td style="background-color: #ffffcc; width: 302px">如果沒有加任何參數時，預設建立的是檔案的符號連結</td><td style="background-color: #ffffcc; width: 302px">捷徑 &lt;SYMBOL&gt;</td><td style="background-color: #ffffcc; width: 241px">&nbsp;</td></tr><tr><td style="text-align: center; width: 60px; background-color: #ccffff">/d</td><td style="width: 302px; background-color: #ccffff">建立目錄的符號連結</td><td style="background-color: #ccffff; width: 302px">捷徑 &lt;SYMBOLD&gt;</td><td style="background-color: #ccffff; width: 241px">&nbsp;</td></tr><tr><td style="background-color: #ffffcc; text-align: center; width: 60px">/j</td><td style="background-color: #ffffcc; width: 302px">建錄目錄的連接點(Junction point)。</td><td style="background-color: #ffffcc; width: 302px">&lt;JUNCTION&gt; 捷徑圖示，但由「內容」看並無捷徑頁籤</td><td style="background-color: #ffffcc; width: 241px">&nbsp;</td></tr><tr><td style="text-align: center; background-color: #ccffff">/h</td><td style="background-color: #ccffff">建立檔案的永久連結。若操作對象是目錄的話會出現【存取被拒】的錯誤訊息</td><td style="background-color: #ccffff; width: 302px">一般檔案</td><td style="background-color: #ccffff; width: 241px">只能對本機的NTFS磁碟操作</td></tr></tbody></table><ul><li>&lt;Link&gt;：要建立的連結名稱 (圖形裡的NewHardLink與NewSoftLink)</li><li>&lt;Target&gt;：被連結的目標，可以是實體目錄或檔案的完整或部份路徑 (圖形裡的OldFileName)</li></ul>範例：<br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"><tbody><tr><td style="background-color: #000000"><pre class="codeSample" style="background-color: #000000"><span style="color: #33ff33">  rem 檔案符號連結</span><br /><span style="color: #33ff33">  mklink c:\ln\soft-file.txt e:\USB\Project1\source\test.txt</span><br /><br /><span style="color: #33ff33">  rem 目錄符號連結</span><br /><span style="color: #33ff33">  mklink /D c:\ln\soft-dir c:\Users\jerry\Documents</span><br /><br /><span style="color: #33ff33">  rem 目錄永久連結</span><br /><span style="color: #33ff33">  mklink /H c:\ln\hard-file.txt c:\users\jerry\Documents\test.txt</span><br /><br /><span style="color: #33ff33">  rem Junction Point</span><br /> <span style="color: #33ff33"> mklink /J c:\ln\jp-dir c:\Users\jerry\Recent</span></pre></td></tr></tbody></table><br />上列指令執行後的結果：<br /><img style="width: 852px; height: 236px" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXFeZ1fpWRb5B298Ej0eSLXRqUDHT6-P4RBNw8XB81GMdi7FOFKqsbYLW9Pd8BkNVW2fcpw_K47VpapMAAahM64C/link-console2.png" alt="output" hspace="20" vspace="10" /><br />永久連結和檔案符號連結建立了兩個檔案(紅框)，目錄符號連結和連接點是兩個目錄，再加上目前目錄的點( . )和代表上層目錄的兩個點( .. )總共四個目錄(淺藍框)。<br /><br />由檔案總管理無法很清楚的看出各種連結的類型，使用<span style="font-weight: bold">dir &nbsp;/aL </span>才能很清楚的到&lt;SYMBOL&gt;、&lt;JUNCTION&gt;等類型。以下是使用 dir /s /aL c:\ 列出Vista輸出的內容。由其內容可以看出幾個重點：<br /><ul><li>為了和Windows以前版本相容，C:\Documents and Settings是新建的連接點，目標是C:\Users</li><li>連接點大量用來建立指向同一個目錄的多個名稱</li></ul><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"><tbody><tr><td style="background-color: #ffffcc"><span style="font-family: monospace">&nbsp;磁碟區 C 中的磁碟是 20080322<br />&nbsp;磁碟區序號:&nbsp; 8C99-6FAB<br /><br />&nbsp;C:\ 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Documents and Settings [C:\Users]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\ProgramData 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\ProgramData]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Desktop [C:\Users\Public\Desktop]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Documents [C:\Users\Public\Documents]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Favorites [C:\Users\Public\Favorites]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\ProgramData\Microsoft\Windows\Templates]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;SYMLINKD&gt;&nbsp;&nbsp;&nbsp;&nbsp; All Users [C:\ProgramData]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Default User [C:\Users\Default]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\All Users 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\ProgramData]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Desktop [C:\Users\Public\Desktop]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Documents [C:\Users\Public\Documents]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Favorites [C:\Users\Public\Favorites]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\ProgramData\Microsoft\Windows\Templates]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\Default 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\Default\AppData\Roaming]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Cookies [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Cookies]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Local Settings [C:\Users\Default\AppData\Local]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Documents [C:\Users\Default\Documents]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; NetHood [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Network Shortcuts]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; PrintHood [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Printer Shortcuts]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Recent [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Recent]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; SendTo [C:\Users\Default\AppData\Roaming\Microsoft\Windows\SendTo]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Start Menu [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\Users\Default\AppData\Roaming\Microsoft\Windows\Templates]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\Default\AppData\Local 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\Default\AppData\Local]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; History [C:\Users\Default\AppData\Local\Microsoft\Windows\History]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Temporary Internet Files [C:\Users\Default\AppData\Local\Microsoft\Windows\Temporary Internet Files]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\Default\Documents 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Music [C:\Users\Default\Music]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Pictures [C:\Users\Default\Pictures]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Videos [C:\Users\Default\Videos]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\jerry 的目錄<br /><br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\jerry\AppData\Roaming]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Cookies [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Cookies]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Local Settings [C:\Users\jerry\AppData\Local]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Documents [C:\Users\jerry\Documents]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; NetHood [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Network Shortcuts]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; PrintHood [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Printer Shortcuts]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Recent [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Recent]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; SendTo [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\SendTo]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Templates [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Templates]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; 「開始」功能表 [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Start Menu]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\jerry\AppData\Local 的目錄<br /><br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Application Data [C:\Users\jerry\AppData\Local]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; History [C:\Users\jerry\AppData\Local\Microsoft\Windows\History]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; Temporary Internet Files [C:\Users\jerry\AppData\Local\Microsoft\Windows\Temporary Internet Files]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Start Menu 的目錄<br /><br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; 程式集 [C:\Users\jerry\AppData\Roaming\Microsoft\Windows\Start Menu\Programs]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\jerry\Documents 的目錄<br /><br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Music [C:\Users\jerry\Music]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Pictures [C:\Users\jerry\Pictures]<br />2008/03/22&nbsp; 12:15&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Videos [C:\Users\jerry\Videos]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;C:\Users\Public\Documents 的目錄<br /><br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Music [C:\Users\Public\Music]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Pictures [C:\Users\Public\Pictures]<br />2006/11/02&nbsp; 21:02&nbsp;&nbsp;&nbsp; &lt;JUNCTION&gt;&nbsp;&nbsp;&nbsp;&nbsp; My Videos [C:\Users\Public\Videos]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; 檔案數目總計:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 個檔案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 位元組<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 51 個目錄&nbsp; 102,296,236,032 位元組可用<br /></span></td></tr></tbody></table><br />參考：<span style="font-weight: bold"><br /></span><ul><li><a href="http://kb.iu.edu/data/abbe.html" target="_blank">In Unix, what is a symbolic link, and how do I create one?</a></li><li><a href="http://kb.iu.edu/data/aibc.html" target="_blank">In Unix, what is a hard link?</a></li><li><a href="http://en.wikipedia.org/wiki/NTFS_junction_point" target="_blank">NTFS junction point</a></li><li><a href="http://articles.techrepublic.com.com/5100-10877_11-6177180.html#comments" target="_blank">Vista's symbolic links feature saves navigating time</a></li><li><a href="http://bbs.pcworld.com.cn/viewthread.php?tid=46063" target="_blank">Windows的12种快捷方式（2007-4-3修?版）</a></li></ul>##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5812299.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5812299.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 04 Apr 2008 22:25:19 +0800</pubDate>
</item>
<item>
	<title>[Vista] 常用快捷鍵彙總</title>
	<description><![CDATA[
			 不知道是否因為Vista的安裝與使用率偏低的關係，網路上找得到的中文資料翻來覆去就那麼幾篇，想要直接閱讀中文來學習卻苦於資源不足，只好轉而尋找英文資料了。順便把重點記錄下來供有興趣的讀者參考。  Vista常用快捷鍵 參考來源：Windows Vista Shortcut Keys                類別       按鍵       功能說明                 管理視窗       Alt+F4       關閉目前作用中的視窗                 Alt+Tab       顯示視窗以切換作用中的視窗          Ctrl+Alt+Tab固定式視窗選擇，選擇視窗顯示後能用&larr;、&rarr;鍵移動(上下與滾輪皆無效)       Win+Tab       以Flip 3D顯示切換視窗，Alt按著不放再按Tab或方向鍵或滑鼠滾輪可以顯示下一個視窗          Ctrl+Win+Tab固定式Flip 3D，3D畫面顯示後可以按方向鍵或滑鼠滾輪切換視窗       Alt+Esc       輪流顯示已開啟視窗                      Win+M       所以視窗最小化(Minimized)                 Win+Shift+M       取消最小化                 Win+D       切換顯示桌面(Desktop)                 執行程式       Win+數字1-9       對應快速啟動區圖示的順序，例如第5個是IE瀏覽器則按Win+5則執行IE                 Win+B       滑鼠游標移動至System Tray(通知區域)的圓形按鈕上，接著便可用方向鍵移游標                 Win+E       開啟檔案總管(Explorer)                 Win+F       開啟搜尋視窗(Find)                 Win+R       開啟命令執行視窗(Run)                 Win+U       開啟Windows行動中心視窗                 Win+Pause       開啟【控制台&rarr;系統及維護&rarr;系統】                 Ctrl+Shift+Esc       開啟工作管理員                 登入登出       Win,&rarr;,&rarr;,&rarr;,Enter       關機                 Win,&rarr;,&rarr;,&rarr;,U       關機                 Win,&rarr;,&rarr;,&rarr;,R       重新啟動(Restart)                 Win,&rarr;,Enter       進入休眠狀態                 Win,&rarr;,&rarr;,&rarr;,W       切換使用者                 Win,L       鎖定電腦(Lock)                 檔案總管       Alt+&uarr;       至上層資料夾                 Alt+&larr;       回上個資料夾                 Alt+&rarr;       至下個資料夾                 Alt+D       移動到位置列(Address bar)                 Alt+Enter       顯示檔案或資料夾的「內容」視窗                 Ctrl+滾輪       切換檢視狀態           ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 不知道是否因為Vista的安裝與使用率偏低的關係，網路上找得到的中文資料翻來覆去就那麼幾篇，想要直接閱讀中文來學習卻苦於資源不足，只好轉而尋找英文資料了。順便把重點記錄下來供有興趣的讀者參考。<br /> <br /> Vista常用快捷鍵<br /> <ul><li>參考來源：<a href="http://productivity.ben61a.com/windows/vista-shortcut-keys.php" target="_blank">Windows Vista Shortcut Keys</a></li></ul> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%">   <tbody>     <tr>       <td style="text-align: center; font-weight: bold; color: #ffffff; background-color: #009900">類別</td>       <td style="text-align: center; font-weight: bold; color: #ffffff; background-color: #009900">按鍵</td>       <td style="text-align: center; font-weight: bold; color: #ffffff; background-color: #009900">功能說明</td>     </tr>     <tr>       <td rowspan="9" style="background-color: #ffffcc">管理視窗</td>       <td style="background-color: #ffffcc">Alt+F4</td>       <td style="background-color: #ffffcc">關閉目前作用中的視窗</td>     </tr>     <tr>       <td style="background-color: #ffffcc">Alt+Tab</td>       <td style="background-color: #ffffcc">顯示視窗以切換作用中的視窗</td>     </tr>     <tr><td style="background-color: #ffffcc">Ctrl+Alt+Tab</td><td style="background-color: #ffffcc">固定式視窗選擇，選擇視窗顯示後能用&larr;、&rarr;鍵移動(上下與滾輪皆無效)</td></tr><tr>       <td style="background-color: #ffffcc">Win+Tab</td>       <td style="background-color: #ffffcc">以Flip 3D顯示切換視窗，Alt按著不放再按Tab或方向鍵或滑鼠滾輪可以顯示下一個視窗</td>     </tr>     <tr><td style="background-color: #ffffcc">Ctrl+Win+Tab</td><td style="background-color: #ffffcc">固定式Flip 3D，3D畫面顯示後可以按方向鍵或滑鼠滾輪切換視窗</td></tr><tr>       <td style="background-color: #ffffcc">Alt+Esc</td>       <td style="background-color: #ffffcc">輪流顯示已開啟視窗</td>     </tr>          <tr>       <td style="background-color: #ffffcc">Win+<span style="font-weight: bold; color: #ff0000">M</span></td>       <td style="background-color: #ffffcc">所以視窗最小化(<span style="font-weight: bold; color: #ff0000">M</span>inimized)</td>     </tr>     <tr>       <td style="background-color: #ffffcc">Win+Shift+M</td>       <td style="background-color: #ffffcc">取消最小化</td>     </tr>     <tr>       <td style="background-color: #ffffcc">Win+<span style="font-weight: bold; color: #ff0000">D</span></td>       <td style="background-color: #ffffcc">切換顯示桌面(<span style="font-weight: bold; color: #ff0000">D</span>esktop)</td>     </tr>     <tr>       <td rowspan="8" style="background-color: #ccffff">執行程式</td>       <td style="background-color: #ccffff">Win+數字<span style="font-weight: bold; color: #ff0000">1-9</span></td>       <td style="background-color: #ccffff">對應快速啟動區圖示的順序，例如第5個是IE瀏覽器則按Win+5則執行IE</td>     </tr>     <tr>       <td style="background-color: #ccffff">Win+<span style="color: #000000">B</span></td>       <td style="background-color: #ccffff">滑鼠游標移動至System Tray(通知區域)的圓形按鈕上，接著便可用方向鍵移游標</td>     </tr>     <tr>       <td style="background-color: #ccffff">Win+<span style="font-weight: bold; color: #ff0000">E</span></td>       <td style="background-color: #ccffff">開啟檔案總管(<span style="font-weight: bold; color: #ff0000">E</span>xplorer)</td>     </tr>     <tr>       <td style="background-color: #ccffff">Win+<span style="font-weight: bold; color: #ff0000">F</span></td>       <td style="background-color: #ccffff">開啟搜尋視窗(<span style="font-weight: bold; color: #ff0000">F</span>ind)</td>     </tr>     <tr>       <td style="background-color: #ccffff">Win+<span style="font-weight: bold; color: #ff0000">R</span></td>       <td style="background-color: #ccffff">開啟命令執行視窗(<span style="font-weight: bold; color: #ff0000">R</span>un)</td>     </tr>     <tr>       <td style="background-color: #ccffff">Win+<span style="font-weight: bold; color: #ff0000">U</span></td>       <td style="background-color: #ccffff">開啟Windows行動中心視窗</td>     </tr>     <tr>       <td style="background-color: #ccffff">Win+Pause</td>       <td style="background-color: #ccffff">開啟【控制台&rarr;系統及維護&rarr;系統】</td>     </tr>     <tr>       <td style="background-color: #ccffff">Ctrl+Shift+Esc</td>       <td style="background-color: #ccffff">開啟工作管理員</td>     </tr>     <tr>       <td rowspan="6" style="background-color: #99ff99">登入登出</td>       <td style="background-color: #99ff99">Win,&rarr;,&rarr;,&rarr;,Enter</td>       <td style="background-color: #99ff99">關機</td>     </tr>     <tr>       <td style="background-color: #99ff99">Win,&rarr;,&rarr;,&rarr;,U</td>       <td style="background-color: #99ff99">關機</td>     </tr>     <tr>       <td style="background-color: #99ff99">Win,&rarr;,&rarr;,&rarr;,<span style="font-weight: bold; color: #ff0000">R</span></td>       <td style="background-color: #99ff99">重新啟動(<span style="font-weight: bold; color: #ff0000">R</span>estart)</td>     </tr>     <tr>       <td style="background-color: #99ff99">Win,&rarr;,Enter</td>       <td style="background-color: #99ff99">進入休眠狀態</td>     </tr>     <tr>       <td style="background-color: #99ff99">Win,&rarr;,&rarr;,&rarr;,W</td>       <td style="background-color: #99ff99">切換使用者</td>     </tr>     <tr>       <td style="background-color: #99ff99">Win,L</td>       <td style="background-color: #99ff99">鎖定電腦(Lock)</td>     </tr>     <tr>       <td rowspan="6" style="background-color: #ffccff">檔案總管</td>       <td style="background-color: #ffccff">Alt+&uarr;</td>       <td style="background-color: #ffccff">至上層資料夾</td>     </tr>     <tr>       <td style="background-color: #ffccff">Alt+&larr;</td>       <td style="background-color: #ffccff">回上個資料夾</td>     </tr>     <tr>       <td style="background-color: #ffccff">Alt+&rarr;</td>       <td style="background-color: #ffccff">至下個資料夾</td>     </tr>     <tr>       <td style="background-color: #ffccff">Alt+D</td>       <td style="background-color: #ffccff">移動到位置列(Address bar)</td>     </tr>     <tr>       <td style="background-color: #ffccff">Alt+Enter</td>       <td style="background-color: #ffccff">顯示檔案或資料夾的「內容」視窗</td>     </tr>     <tr>       <td style="background-color: #ffccff">Ctrl+滾輪</td>       <td style="background-color: #ffccff">切換檢視狀態</td>     </tr>   </tbody> </table> <br /> ## 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5806499.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5806499.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 04 Apr 2008 00:31:28 +0800</pubDate>
</item>
<item>
	<title>停止ThinkPad X61部份開機服務與處理程序</title>
	<description><![CDATA[
			 ThinkPad X61開機後自動載入了一大堆的服務與程式，不僅影響開機速度也拖累整體效能，同時因為在辦公室裡是使用外接的螢幕與鍵盤，因此自動載入的許多程式是不會使用到的。今天花了點時間將這些程式一一揪出，並寫了批次檔來方便在家裡與辦公室兩邊切換。  以下是ThinkPad自動啟動的服務(參考：ThinkPad 中的一些服务的说明)：                顯示名稱       服務名稱       描述       說明                 Bluetooth Support Service       BthServ:       藍牙支援功能       不使用藍牙時可以停止                 IP Helper       iphlpsvc       透過 IPv4 網路提供自動 IPv6 連線能力。如果停止此服務，則機器只有在連線到原始 IPv6 網路時，才會具有 IPv6 連線能力。              目前環境只有IPv4，因此停止之                 On Screen Display       TPHKSVC       C:\Program Files\LENOVO\HOTKEY\TPHKSVC.exe              應該是設定Fn功能鍵的服務                 ReadyBoost       EMDMgmt       使用 ReadyBoost，提供增進系統效能的支援。       我有4GB的RAM，先關掉了                 Tablet PC Input Service       TabletInputService       Tablet PC Input Service 啟用 Tablet PC 畫筆和筆墨功能       沒有用，關掉                 ThinkPad HDD APS Logging Service       TPHDEXLGSVC       「IBM的硬碟安全氣囊及動態保護系统」       &nbsp;                 ThinkPad PM Service        IBMPMSVC       「Thinkpad电源管理的驱动.提供了对热键Fn, F3, F4, F12的支持，控制主机active, standby」        PM就是Power Management(電源管理)                 ThinkVantage Registry Monitor Service       ThinkVantage Registry Monitor Service       註冊表監控服務       &nbsp;           自動啟動的處理程序：                影像名稱              描述       說明                 tp4serv              PS/2 TrackPoint Daemon       外接鍵盤時停止之                 tpfnf7sp:              Presentation Director Fn+F7 handler       外接鍵盤時停止之                 TPONSCR               On screen display drawer       外接鍵盤時停止之                 TPOSDSVC:              On screen display message handler       外接鍵盤時停止之                 TpScrex:              ThinkPad UltraZoom       外接鍵盤時停止之                 TpShocks:              ThinkVantage Active Protection System       &nbsp;                 EZEJMNAP:              ThinkPad EasyEject Support Application       外接鍵盤時停止之                 AwaySch:              Maintenance Manager Scheduler       &nbsp;     BTStackServer:Bluetooth Stack COM Server不使用藍牙時可以停止BTTray:Bluetooth Tray Application不使用藍牙時可以停止LPMGR ThinkVantage Productivity Center Manager外接鍵盤時停止之    我寫了一個名為office.bat的批次檔，上班時執行即能將不需要的程式關閉：rem ========== 以下為服務rem BthServ: Bluetooth Support Servicerem iphlpsvc: IP Helper 透過 IPv4 網路提供自動 IPv6 連線能力。如果停止此服務，則機器只有在連線到原始 IPv6 網路時，才會具有 IPv6 連線能力。rem TPHKSVC: On Screen Displayrem EMDMgmt: ReadyBoostrem TabletInputService: Tablet PC Input Service 啟用 Tablet PC 畫筆和筆墨功能rem TPHDEXLGSVC: ThinkPad HDD APS Logging Servicerem IBMPMSVC: ThinkPad PM Servicerem ThankPad antage Registry Monitor Seicerem ==========net stop BthServnet stop iphlpsvcnet stop TPHKSVCnet stop EMDMgmtnet stop TabletInputrem net stop TPHDEXLGSVCrem net stop IBMPMSVCrem ============= 以下為處理程序rem tp4serv: PS/2 TrackPoint Daemonrem tpfnf7sp: Presentation Director Fn+F7 handlerrem TPONSCR: On screen display drawerrem TPOSDSVC: On screen display message handlerrem TpScrex: ThinkPad UltraZoomrem TpShocks: ThinkVantage Active Protection Systemrem EZEJMNAP: ThinkPad EasyEject Support Applicationrem AwaySch: Maintenance Manager Schedulerrem BTStackServer: Bluetooth Stack COM Serverrem BTTray: Bluetooth Tray Applicationrem LPMGR: ThinkVantage Productivity Center Managerrem ================================================rem 用tskill.exe把不需要的process殺掉tskill tp4servtskill tpfnf7sptskill TPONSCRtskill TPOSDSVCtskill TpScrextskill TpShockstskill EZEJMNAPtskill AwaySchtskill BTStackServertskill BTTraytskill LPMGR停止處理程序的指令以前是TaskKill，現在卻變成tskill了。office.bat批次檔下載## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 ThinkPad X61開機後自動載入了一大堆的服務與程式，不僅影響開機速度也拖累整體效能，同時因為在辦公室裡是使用外接的螢幕與鍵盤，因此自動載入的許多程式是不會使用到的。今天花了點時間將這些程式一一揪出，並寫了批次檔來方便在家裡與辦公室兩邊切換。<br /> <br /> 以下是ThinkPad自動啟動的服務(參考：<a href="http://www.x2blog.cn/jinhong618/24745.html" target="_blank">ThinkPad 中的一些服务的说明</a>)：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%">   <tbody>     <tr>       <td style="width: 187px; text-align: center; background-color: #009900; color: #ffffff">顯示名稱</td>       <td style="width: 173px; text-align: center; background-color: #009900; color: #ffffff">服務名稱</td>       <td style="width: 381px; text-align: center; background-color: #009900; color: #ffffff">描述</td>       <td style="width: 159px; text-align: center; background-color: #009900; color: #ffffff">說明</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">Bluetooth Support Service</td>       <td style="width: 173px; background-color: #ffccff">BthServ:</td>       <td style="width: 381px; background-color: #ffccff">藍牙支援功能</td>       <td style="width: 159px; background-color: #ffccff">不使用藍牙時可以停止</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">IP Helper</td>       <td style="width: 173px; background-color: #ffccff">iphlpsvc</td>       <td style="width: 381px; background-color: #ffccff">透過 IPv4 網路提供自動 IPv6 連線能力。如果停止此服務，則機器只有在連線到原始 IPv6 網路時，才會具有 IPv6 連線能力。<br />       </td>       <td style="width: 159px; background-color: #ffccff">目前環境只有IPv4，因此停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">On Screen Display</td>       <td style="width: 173px; background-color: #ffccff">TPHKSVC</td>       <td style="width: 381px; background-color: #ffccff">C:\Program Files\LENOVO\HOTKEY\TPHKSVC.exe<br />       </td>       <td style="width: 159px; background-color: #ffccff">應該是設定Fn功能鍵的服務</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">ReadyBoost</td>       <td style="width: 173px; background-color: #ffccff">EMDMgmt</td>       <td style="width: 381px; background-color: #ffccff">使用 ReadyBoost，提供增進系統效能的支援。<br /></td>       <td style="width: 159px; background-color: #ffccff">我有4GB的RAM，先關掉了</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">Tablet PC Input Service</td>       <td style="width: 173px; background-color: #ffccff">TabletInputService</td>       <td style="width: 381px; background-color: #ffccff">Tablet PC Input Service 啟用 Tablet PC 畫筆和筆墨功能</td>       <td style="width: 159px; background-color: #ffccff">沒有用，關掉</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffffcc">ThinkPad HDD APS Logging Service</td>       <td style="width: 173px; background-color: #ffffcc">TPHDEXLGSVC</td>       <td style="width: 381px; background-color: #ffffcc">「IBM的硬碟安全氣囊及動態保護系统」</td>       <td style="width: 159px; background-color: #ffffcc">&nbsp;</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffffcc">ThinkPad PM Service</td>       <td style="width: 173px; background-color: #ffffcc"> IBMPMSVC</td>       <td style="width: 381px; background-color: #ffffcc">「Thinkpad电源管理的驱动.提供了对热键Fn, F3, F4, F12的支持，控制主机active, standby」 </td>       <td style="width: 159px; background-color: #ffffcc">PM就是Power Management(電源管理)</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffffcc">ThinkVantage Registry Monitor Service</td>       <td style="width: 173px; background-color: #ffffcc">ThinkVantage Registry Monitor Service</td>       <td style="width: 381px; background-color: #ffffcc">註冊表監控服務</td>       <td style="width: 159px; background-color: #ffffcc">&nbsp;</td>     </tr>   </tbody> </table> <br /> 自動啟動的處理程序：<br /> <br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%">   <tbody>     <tr>       <td style="width: 187px; text-align: center; background-color: #009900; color: #ffffff">影像名稱</td>              <td style="text-align: center; background-color: #009900; color: #ffffff; width: 417px">描述</td>       <td style="text-align: center; background-color: #009900; color: #ffffff; width: 260px">說明</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">tp4serv</td>              <td style="background-color: #ffccff; width: 417px">PS/2 TrackPoint Daemon</td>       <td style="background-color: #ffccff; width: 260px">外接鍵盤時停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">tpfnf7sp:</td>              <td style="background-color: #ffccff; width: 417px">Presentation Director Fn+F7 handler</td>       <td style="background-color: #ffccff; width: 260px">外接鍵盤時停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">TPONSCR</td>              <td style="background-color: #ffccff; width: 417px"> On screen display drawer</td>       <td style="background-color: #ffccff; width: 260px">外接鍵盤時停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">TPOSDSVC:</td>              <td style="background-color: #ffccff; width: 417px">On screen display message handler</td>       <td style="background-color: #ffccff; width: 260px">外接鍵盤時停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">TpScrex:</td>              <td style="background-color: #ffccff; width: 417px">ThinkPad UltraZoom</td>       <td style="background-color: #ffccff; width: 260px">外接鍵盤時停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffffcc">TpShocks:</td>              <td style="background-color: #ffffcc; width: 417px">ThinkVantage Active Protection System</td>       <td style="background-color: #ffffcc; width: 260px">&nbsp;</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffccff">EZEJMNAP:</td>              <td style="width: 417px; background-color: #ffccff">ThinkPad EasyEject Support Application</td>       <td style="width: 260px; background-color: #ffccff">外接鍵盤時停止之</td>     </tr>     <tr>       <td style="width: 187px; background-color: #ffffcc">AwaySch:</td>              <td style="background-color: #ffffcc; width: 417px">Maintenance Manager Scheduler</td>       <td style="background-color: #ffffcc; width: 260px">&nbsp;</td>     </tr><tr><td style="background-color: #ffccff">BTStackServer:</td><td style="width: 417px; background-color: #ffccff">Bluetooth Stack COM Server</td><td style="width: 260px; background-color: #ffccff">不使用藍牙時可以停止</td></tr><tr><td style="background-color: #ffccff">BTTray:</td><td style="width: 417px; background-color: #ffccff">Bluetooth Tray Application</td><td style="width: 260px; background-color: #ffccff">不使用藍牙時可以停止</td></tr><tr><td style="background-color: #ffccff">LPMGR</td><td style="width: 417px; background-color: #ffccff"> ThinkVantage Productivity Center Manager</td><td style="width: 260px; background-color: #ffccff">外接鍵盤時停止之</td></tr>   </tbody> </table><br />我寫了一個名為<span style="font-weight: bold">office.bat</span>的批次檔，上班時執行即能將不需要的程式關閉：<br /><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"><tbody><tr><td style="background-color: #ffffcc">rem ========== 以下為服務<br />rem BthServ: Bluetooth Support Service<br />rem iphlpsvc: IP Helper 透過 IPv4 網路提供自動 IPv6 連線能力。如果停止此服務，則機器只有在連線到原始 IPv6 網路時，才會具有 IPv6 連線能力。<br />rem TPHKSVC: On Screen Display<br />rem EMDMgmt: ReadyBoost<br />rem TabletInputService: Tablet PC Input Service 啟用 Tablet PC 畫筆和筆墨功能<br />rem TPHDEXLGSVC: ThinkPad HDD APS Logging Service<br />rem IBMPMSVC: ThinkPad PM Service<br />rem ThankPad antage Registry Monitor Seice<br />rem ==========<br />net stop BthServ<br />net stop iphlpsvc<br />net stop TPHKSVC<br />net stop EMDMgmt<br />net stop TabletInput<br />rem net stop TPHDEXLGSVC<br />rem net stop IBMPMSVC<br />rem ============= 以下為處理程序<br />rem tp4serv: PS/2 TrackPoint Daemon<br />rem tpfnf7sp: Presentation Director Fn+F7 handler<br />rem TPONSCR: On screen display drawer<br />rem TPOSDSVC: On screen display message handler<br />rem TpScrex: ThinkPad UltraZoom<br />rem TpShocks: ThinkVantage Active Protection System<br />rem EZEJMNAP: ThinkPad EasyEject Support Application<br />rem AwaySch: Maintenance Manager Scheduler<br />rem BTStackServer: Bluetooth Stack COM Server<br />rem BTTray: Bluetooth Tray Application<br />rem LPMGR: ThinkVantage Productivity Center Manager<br />rem ================================================<br />rem 用tskill.exe把不需要的process殺掉<br />tskill tp4serv<br />tskill tpfnf7sp<br />tskill TPONSCR<br />tskill TPOSDSVC<br />tskill TpScrex<br />tskill TpShocks<br />tskill EZEJMNAP<br />tskill AwaySch<br />tskill BTStackServer<br />tskill BTTray<br />tskill LPMGR</td></tr></tbody></table><br />停止處理程序的指令以前是TaskKill，現在卻變成<span style="font-weight: bold">tskill</span>了。<br /><ul><li>office.bat批次檔<a href="http://1eddqg.bay.livefilestore.com/y1p4vAaHNH_yno-xX27VMH8aWA2NBfbcFS7sQXEpZGXbhDYVR71-8qWqAAZ_hZi0v8axEui5f7lyUZSlaBDKiEw8w/office.bat?download" target="_blank">下載</a></li></ul>##<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5774367.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5774367.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 29 Mar 2008 21:55:17 +0800</pubDate>
</item>
<item>
	<title>Vista適應中～幾個開發環境上的差異</title>
	<description><![CDATA[
			 用了幾天的Vista，發現了幾項與先前使用的Windows 2003 Server的差異： 沒有預設的telnet client工具，必須自行啟動   1. 控制台\程式集\程式和功能\ 開啟或關閉Windows功能(在左側最後一項有盾牌的那個連結) 2. 勾選Telnet用戶端   用http://localhost連本機的Web Server時會出錯；一開始真是不知何處發生問題，狀況是原本正常的Web應用程式在本地端運行卻發生異常。看了stdout.log後發現每列開頭的IP都變成0:0:0:0:0:0:0:1， 我們在Server上產生的XML檔名會帶有IP，結果造成讀檔誤。JSP執行&lt;%= request.getRemoteAddr() %&gt;傳回的都是0:0:0:0:0:0:1把http://localhost改成實體IP或http://127.0.0.1後是正常的推測是Vista內建IPv6造成的狀況。最後修改C:\Windows\system32\drivers\etc\ hosts，把最後一行開頭加上#號：    # ::1 &nbsp; &nbsp; localhost     沒有通用輸入法建立精靈。如果你看過我寫的這篇自己當倉頡：打造自己的 輸入法的話，就會清楚我透過通用輸入法建立精靈仿照鯨魚輸入法建立了一組輸入詞組，少了這個工具對我的中文輸入造成莫大影響。幸好找 到方法能把舊版的程式拷貝來用。由舊系統裡把檔案複製到相同資料夾裡：C:\Program files\Windows NT\Accessories\uimetool.exeC:\Windows\System32\Miniime.tpl、uniime.dll再把uimetool.exe加到程式集裡以方便執行預設的使用者安全控制(UAC)會造成無法拷貝檔案，必須先暫停此設定才能正常複製檔案TortiseSVN安裝後無法在檔案總管表頭區加入SVN的欄位，以前會加入SVN狀態欄位，以方便狀態排序，日後無法再使用 了。下列開發網站上的說明：    The Windows explorer in Vista has changed quite a bit, and one of those changes was to abandon the additional columns but introduce a new &quot;property system&quot;. Since the property system is file type based, we can't add a column for Subversion information anymore.     StrokeIt無法順利執行，雖然論壇上說只要停止手勢線條繪製的功能則部份程式能運作，但我試用了一會覺得不太順利，因而放棄了。適應中，適應中，適應中．．．似乎困難重重啊～## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 用了幾天的Vista，發現了幾項與先前使用的Windows 2003 Server的差異：<br /> <ol><li>沒有預設的telnet client工具，必須自行啟動</li><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #3366ff; width: 100%"> <tbody> <tr> <td style="background-color: #ffffcc">1. 控制台\程式集\程式和功能\ 開啟或關閉Windows功能(在左側最後一項有盾牌的那個連結)<br /> 2. 勾選Telnet用戶端</td> </tr> </tbody> </table><li>用http://localhost連本機的Web Server時會出錯；一開始真是不知何處發生問題，狀況是原本正常的Web應用程式在本地端運行卻發生異常。<ol><li>看了stdout.log後發現每列開頭的IP都變成<span style="color: #ff0000; font-weight: bold">0:0:0:0:0:0:0:1</span>， 我們在Server上產生的XML檔名會帶有IP，結果造成讀檔誤。</li><li>JSP執行<span style="font-style: italic; color: #ff6600">&lt;%= request.getRemoteAddr() %&gt;</span>傳回的都是0:0:0:0:0:0:1</li><li>把http://localhost改成實體IP或http://127.0.0.1後是正常的</li><li>推測是Vista內建IPv6造成的狀況。最後修改<span style="font-weight: bold">C:\Windows\system32\drivers\etc\ hosts</span>，把最後一行開頭加上#號：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 100%; background-color: #3366ff"> <tbody> <tr> <td style="background-color: #ffffcc"># ::1 &nbsp; &nbsp; localhost<br /> </td> </tr> </tbody> </table> </li></ol></li><li>沒有通用輸入法建立精靈。<ol><li>如果你看過我寫的這篇<a href="http://blog.xuite.net/emisjerry/tech/48589">自己當倉頡：打造自己的 輸入法</a>的話，就會清楚我透過通用輸入法建立精靈仿照鯨魚輸入法建立了一組輸入詞組，少了這個工具對我的中文輸入造成莫大影響。幸好找 到方法能把舊版的程式拷貝來用。</li><li>由舊系統裡把檔案複製到相同資料夾裡：<ol><li style="font-weight: bold">C:\Program files\Windows NT\Accessories\uimetool.exe</li><li><span style="font-weight: bold">C:\Windows\System32\Miniime.tpl</span>、<span style="font-weight: bold">uniime.dll</span></li></ol></li><li>再把uimetool.exe加到程式集裡以方便執行</li><li>預設的使用者安全控制(UAC)會造成無法拷貝檔案，必須先暫停此設定才能正常複製檔案</li></ol></li><li>TortiseSVN安裝後無法在檔案總管表頭區加入SVN的欄位，以前會加入SVN狀態欄位，以方便狀態排序，日後無法再使用 了。下列開發網站上的說明： <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; width: 100%; background-color: #3333ff"> <tbody> <tr> <td style="background-color: #ffffcc">The Windows explorer in Vista has changed quite a bit, and one of those changes was to abandon the additional columns but introduce a new &quot;property system&quot;. Since the property system is file type based,<span style="font-weight: bold"> we can't add a column for Subversion information anymore.</span><br /> </td> </tr> </tbody> </table> </li><li>StrokeIt無法順利執行，雖然論壇上說只要停止手勢線條繪製的功能則部份程式能運作，但我試用了一會覺得不太順利，因而放棄了。</li></ol>適應中，適應中，適應中．．．似乎困難重重啊～<br /><br />##<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5759755.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5759755.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Wed, 26 Mar 2008 22:30:10 +0800</pubDate>
</item>
<item>
	<title>手動更新AntiVir的病毒更新碼</title>
	<description><![CDATA[
			自從Avira推出了Free的AntiVir PersonalEdition Classic後，AntiVir就變成了我的電腦守門員，它也很稱職地抵擋住多次的攻擊。但是，突然有一天自動更新病毒碼就每次都失敗，迄今兩個月了，試過多種方法都無法復原。終於今天在海芋小站找到了手動更新的步驟！ 由http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip下載病毒更新檔 開啟AntiVir視窗，打開【功能表&rarr;Update&rarr;Manual update...】選取ivdf_fusebundle_nt_en.zip這樣就能更新成功了。海芋小站也有許多的AntiVir使用教學，值得AntiVir的用戶閱讀。##
		]]>
	</description>
	<content:encoded><![CDATA[
			自從<a href="http://www.free-av.com/" target="_blank" title="外部連結至 http://www.free-av.com/" class="externalLink">Avira</a>推出了Free的<a href="http://www.antivir-pe.com/freet/index.php?id=9&amp;domain=free-av.com" target="_blank" title="外部連結至 http://www.antivir-pe.com/freet/index.php?id=9&amp;domain=free-av.com" class="externalLink">AntiVir PersonalEdition Classic</a>後，AntiVir就變成了我的電腦守門員，它也很稱職地抵擋住多次的攻擊。但是，突然有一天自動更新病毒碼就每次都失敗，迄今兩個月了，試過多種方法都無法復原。終於今天在<a href="http://ck69user.blogspot.com/" target="_blank" title="外部連結至 http://ck69user.blogspot.com/" class="externalLink">海芋小站</a>找到了手動更新的步驟！<br /><ul><li> 由<a href="http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip" target="_blank" title="外部連結至 http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip" class="externalLink">http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip</a>下載病毒更新檔</li><li> 開啟AntiVir視窗，打開【功能表&rarr;Update&rarr;Manual update...】選取ivdf_fusebundle_nt_en.zip</li></ul>這樣就能更新成功了。<br /><br />海芋小站也有許多的AntiVir<a href="http://ck69user.blogspot.com/2007/05/antivir.html" target="_blank" title="外部連結至 http://ck69user.blogspot.com/2007/05/antivir.html" class="externalLink">使用教學</a>，值得AntiVir的用戶閱讀。<br /><br />##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4530857.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4530857.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 23 Nov 2007 23:15:59 +0800</pubDate>
</item>
<item>
	<title>加快檔案總管開啟速度的小密訣</title>
	<description><![CDATA[
			今天在Life Hacker裡看到的小偏方，不保證有效....因為我的電腦開啟檔案總管時並沒有明顯的Lag，修改後也感覺不出有明顯的差異。如果你的網路環境速度較慢的話，姑且試之吧。 設定步驟如下： 開啟檔案總管 【工具&rarr;資料夾選項&rarr;檢視&rarr;下方的進階設定】，取消「自動搜尋網路資料夾和印表機」的勾選 按確定關閉視窗##
		]]>
	</description>
	<content:encoded><![CDATA[
			今天在<a href="http://lifehacker.com/software/windows-tip/speed-up-a-slow-my-computer-with-a-simple-tweak-317421.php" target="_blank" title="外部連結至 http://lifehacker.com/software/windows-tip/speed-up-a-slow-my-computer-with-a-simple-tweak-317421.php" class="externalLink">Life Hacker</a>裡看到的小偏方，不保證有效....因為我的電腦開啟檔案總管時並沒有明顯的Lag，修改後也感覺不出有明顯的差異。如果你的網路環境速度較慢的話，姑且試之吧。 設定步驟如下：<br /><ol><li> 開啟檔案總管</li><li> 【工具&rarr;資料夾選項&rarr;檢視&rarr;下方的進階設定】，取消「自動搜尋網路資料夾和印表機」的勾選</li><li> 按確定關閉視窗</li></ol>##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4404357.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4404357.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 01 Nov 2007 23:54:30 +0800</pubDate>
</item>
<item>
	<title>取得方正明體、方正楷體與手動設定檔案關聯</title>
	<description><![CDATA[
			由於使用了GDI++之後，造成細明體、新細明體與標楷體皆會形成異常的破碎狀，因此須將此三個字型替換換成別的字型檔。全部換成微軟正黑體是一個方法，但若要保留原有的明體與楷體，則可以使用方正明體與方正楷體。方正明體、方正楷體與方正黑體可以下載Google Pack裡的StarOffice 8來取得，安裝StarOffice後就能在C:\Windows\Fonts裡找到fz開頭的字型檔。但因我原先已經安裝了OpenOffice.org 2.3版，因此取得方正字型檔後便移除StarOffice，沒想到移除後相關的副檔名關聯也被移除了，雖然可以用Uninstall&rarr;Repair來修正，但這次使用了手動命令來快速完成：rem 用FTYPE設定檔案型態ftype OpenOffice.org.odt=&quot;C:\Program Files\OpenOffice.org 2.3\program\soffice.exe&quot; -writer -o &quot;%1&quot;rem 副檔名關聯到設定好的檔案型態assoc .odt=OpenOffice.org.odt其他副檔名比照辦理即可。&nbsp;## 
		]]>
	</description>
	<content:encoded><![CDATA[
			由於<a href="http://blog.xuite.net/emisjerry/tech/13996113" target="_blank" title="外部連結至 http://blog.xuite.net/emisjerry/tech/13996113" class="externalLink">使用了GDI++</a>之後，造成細明體、新細明體與標楷體皆會形成異常的<a href="http://img91.imageshack.us/img91/2280/gostongdikj0.jpg" target="_blank" title="外部連結至 http://img91.imageshack.us/img91/2280/gostongdikj0.jpg" class="externalLink">破碎狀</a>，因此須將此三個字型替換換成別的字型檔。全部換成微軟正黑體是一個方法，但若要保留原有的明體與楷體，則可以使用方正明體與方正楷體。<br /><br />方正明體、方正楷體與方正黑體可以<a href="http://my-net.cc/weblog/read.php?199" target="_blank" title="外部連結至 http://my-net.cc/weblog/read.php?199" class="externalLink">下載Google Pack裡的StarOffice 8</a>來取得，安裝StarOffice後就能在C:\Windows\Fonts裡找到fz開頭的字型檔。<br /><br />但因我原先已經安裝了OpenOffice.org 2.3版，因此取得方正字型檔後便移除StarOffice，沒想到移除後相關的副檔名關聯也被移除了，雖然可以用Uninstall&rarr;Repair來修正，但這次使用了手動命令來快速完成：<br /><pre>rem 用FTYPE設定檔案型態<br />ftype OpenOffice.org.odt=&quot;C:\Program Files\OpenOffice.org 2.3\program\soffice.exe&quot; -writer -o &quot;%1&quot;<br /><br />rem 副檔名關聯到設定好的檔案型態<br />assoc .odt=OpenOffice.org.odt<br /></pre><p>其他副檔名比照辦理即可。</p><p>&nbsp;## </p>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4350157.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4350157.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Wed, 24 Oct 2007 00:16:31 +0800</pubDate>
</item>
<item>
	<title>補遺：[軟體] 超強 Windows 字型美化軟體 - GDI++</title>
	<description><![CDATA[
			 Goston推了PTT BBS「delphinus」網友的《[免費] Gdi++ Windows 下字形美化軟體》而發表：[軟體] 超強 Windows 字型美化軟體 - GDI++一文，也把他調整後的畫面展示在[生活] 我現在 XP 的佈景主題。但當我依照說明把檔案安裝並運行後，應該被替換掉的有問題的細明體、新細明體等，卻仍呈現成破碎狀，試著修改gdi++.ini調整設定並請教Goston後再試，仍然無法解決。最後是在Once in a Blue Moon的這篇My GDI++ installation and configuration tips裡找到的問題並順利解決了。解決的方法有兩種，一個是讓GDI++略過細明體等有問題的字體不處理，另一個是將細明體等替換成別的正常的字型。詳述如下：兩種方法都要修改gdi++.ini，修改後務必以UTF-16 LE格式儲存，我屢試屢敗的癥結就在此處：當存成別的格式時，GDI++因為無法正確辨識中文而造成設定失敗。為了方便操作，可以執行gdippManager.exe讓GDI++圖示在System Tray裡顯示，用Double-click切換。 排除會造成問題的字型 編輯gdi++.ini，加入排除字型：[Exclude]細明體新細明體標楷體 設定替換字型 編輯gdi++.ini，加入替換字型，替換後的字型可以使用你C:\Windows\Fonts裡的可用字型：[General]FontSubstitutes=1[FontSubstitutes]細明體=方正明體新細明體=SimSun標楷體=方正楷體 [Exclude]和[FontSubstitutes]同時存在時，是[Exclude]的設定生效## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 Goston推了PTT BBS「delphinus」網友的《[免費] Gdi++ Windows 下字形美化軟體》而發表：<a href="http://www.goston.net/2007/10/19/1080/" target="_blank" title="外部連結至 http://www.goston.net/2007/10/19/1080/" class="externalLink">[軟體] 超強 Windows 字型美化軟體 - GDI++</a>一文，也把他調整後的畫面展示在<a href="http://www.goston.net/2007/10/19/1081/" target="_blank" title="外部連結至 http://www.goston.net/2007/10/19/1081/" class="externalLink">[生活] 我現在 XP 的佈景主題</a>。但當我依照說明把檔案安裝並運行後，應該被替換掉的有問題的細明體、新細明體等，卻仍呈現成破碎狀，試著修改gdi++.ini調整設定並請教Goston後再試，仍然無法解決。最後是在Once in a Blue Moon的這篇<a href="http://b6s.blogspot.com/2007/10/my-gdi-installation-and-configuration.html" target="_blank" title="外部連結至 http://b6s.blogspot.com/2007/10/my-gdi-installation-and-configuration.html" class="externalLink">My GDI++ installation and configuration tips</a>裡找到的問題並順利解決了。解決的方法有兩種，一個是讓GDI++略過細明體等有問題的字體不處理，另一個是將細明體等替換成別的正常的字型。詳述如下：<br /><br />兩種方法都要修改gdi++.ini，修改後務必<span style="color: #ff0000"><strong>以UTF-16 LE格式儲存</strong></span>，我屢試屢敗的癥結就在此處：當存成別的格式時，GDI++因為無法正確辨識中文而造成設定失敗。為了方便操作，可以執行gdippManager.exe讓GDI++圖示在System Tray裡顯示，用Double-click切換。<br /><br /><ul><li> 排除會造成問題的字型<ul><li> 編輯gdi++.ini，加入排除字型：</li></ul></li></ul><pre>[Exclude]<br />細明體<br />新細明體<br />標楷體<br /></pre><ul><li> 設定替換字型<ul><li> 編輯gdi++.ini，加入替換字型，替換後的字型可以使用你C:\Windows\Fonts裡的可用字型：</li></ul></li></ul><pre>[General]<br />FontSubstitutes=1<br /><br />[FontSubstitutes]<br />細明體=方正明體<br />新細明體=SimSun<br />標楷體=方正楷體<br /></pre><ul><li> [Exclude]和[FontSubstitutes]同時存在時，是[Exclude]的設定生效</li></ul>##<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4340177.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4340177.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 21 Oct 2007 23:12:21 +0800</pubDate>
</item>
<item>
	<title>螢火飛大推出新版字型：文鼎ＰＬ新宋、文鼎ＰＬ新中楷</title>
	<description><![CDATA[
			
OSS 桌面應用增進計劃剛剛釋出的新版文鼎ＰＬ新宋（AR PL
New Sung）、文鼎ＰＬ新中楷（AR PL New Kai）可以試用看看。

詳情請看：OpenDesktop
計畫消息 : Opendesktop 字型正式釋出。

##



		]]>
	</description>
	<content:encoded><![CDATA[
			
<input type="hidden" id="mytag" value="opendesktop 螢火飛 font" /><a href="http://www.opendesktop.org.tw/modules/news/article.php?storyid=106" target="_blank">OSS 桌面應用增進計劃</a>剛剛釋出的新版文鼎ＰＬ新宋（AR PL
New Sung）、文鼎ＰＬ新中楷（AR PL New Kai）可以試用看看。<br />
<br />
詳情請看：<span class="itemTitle"><a href="http://www.opendesktop.org.tw/modules/news/index.php?storytopic=2">OpenDesktop
計畫消息</a> : Opendesktop 字型正式釋出。</span><br />
<br />
##



		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2845113.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2845113.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2845113.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Mon, 12 Mar 2007 23:27:03 +0800</pubDate>
</item>
<item>
	<title>[Cygwin] 用cygstart啟動文件檔案</title>
	<description><![CDATA[
			
在Cygwin裡找不到常用的start命令，用來開啟檔案總管或執行開啟文件的操作，例如：用 start . 開啟檔案總管瀏覽目前資料夾用 start test.doc 以副檔名關聯MS-Word讀取檔案先前想到的方法是用檔案總管的執行檔(explorer.exe)來取代start，即在家目錄裡的 .bashrc 設定alias：alias start='explorer'後來發現了Cygwin指令cygstart.exe能取代start的功能，因此把上述指令替換如下：alias start='cygstart'這樣原來針對幾個常用的副檔名做的指令就都不再需要了，直接用start即可：// 舊的寫法function wd() { &quot;c:/program files/OpenOffice.org 2.1/program/swriter.exe&quot; $*; }##


		]]>
	</description>
	<content:encoded><![CDATA[
			
在Cygwin裡找不到常用的start命令，用來開啟檔案總管或執行開啟文件的操作，例如：<br /><ul><li>用<span style="font-weight: bold;"> start . </span>開啟檔案總管瀏覽目前資料夾</li><li>用<span style="font-weight: bold;"> start test.doc </span>以副檔名關聯MS-Word讀取檔案</li></ul>先前想到的方法是用檔案總管的執行檔(explorer.exe)來取代start，即在家目錄裡的 .bashrc 設定alias：<br /><br /><span style="font-weight: bold;">alias start='explorer'</span><br /><br />後來發現了Cygwin指令cygstart.exe能取代start的功能，因此把上述指令替換如下：<br /><br /><span style="font-weight: bold;">alias start='cygstart'</span><br /><br />這樣原來針對幾個常用的副檔名做的指令就都不再需要了，直接用start即可：<br /><br /><span style="font-weight: bold;">// 舊的寫法</span><br style="font-weight: bold;" /><span style="font-weight: bold;">function wd() { &quot;c:/program files/OpenOffice.org 2.1/program/swriter.exe&quot; $*; }</span><br /><br />##<br />


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2661498.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2661498.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2661498.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 21 Jan 2007 22:02:53 +0800</pubDate>
</item>
<item>
	<title>[Cygwin] 與常用DOS命令的對應簡表</title>
	<description><![CDATA[
			
針對常用的DOS命令與Cygwin的對應做了一個簡表：功　　能cmd.exe (DOS命令提示字元)Cygwin (*NIX)列出子目錄名稱dir /adls -d */依檔案時間排序dir /odls -ltr (l=long format, t=sort by modification time,r=reverse order) 最近日期排最下面依副檔名排序dir /oels -lSX(l=long format, SX=sort by eXtension)依檔案大小排序dir /o-sls -lSr (l=long format, S=Sort by size, r=reverse order) 由大到小排暫停螢幕moreCygwin找不到more指令，有兩個解決方法：把c:\Windows\system32\more.com複製成c:\Cygwin\bin\more.exe使用alias more='less -r'less加入-r才能正常顯示中文內容另外，為了方便操作，把常用的資料夾在啟動Cygwin時就掛載起來，指令是mount：mount &quot;C:/Documents and Settings/$USER&quot;  /mydirmount &quot;C:/Documents and Settings/$USER/My Documents&quot;  /mydocmount執行後會出現目錄不存在的警告，忽略即可，掛載點已經建立好了。日後用 cd  /mydoc 就可以直接切換到需要的目錄。解除掛載點的方法是用umount：umount /mydoc掛載表格(mount table)並不是存放在/etc/mtab裡，而是存放在Windows registry HKEY_LOCAL_MACHINE/Software/Cygnus Solutions/cygwin/mounts v2裡。##
		]]>
	</description>
	<content:encoded><![CDATA[
			
針對常用的DOS命令與Cygwin的對應做了一個簡表：<br /><br /><table cellspacing="2" cellpadding="2" border="1" style="text-align: left; width: 100%;"><tbody><tr><td style="text-align: center; background-color: rgb(204, 255, 255);">功　　能</td><td style="width: 40%; text-align: center; background-color: rgb(204, 255, 255);">cmd.exe (DOS命令提示字元)</td><td style="width: 40%; text-align: center; background-color: rgb(204, 255, 255);">Cygwin (*NIX)</td></tr><tr><td>列出子目錄名稱</td><td style="width: 269px;">dir /ad</td><td style="width: 364px;"><span style="font-weight: bold;">ls -d */</span></td></tr><tr><td>依檔案時間排序</td><td style="width: 269px;">dir /od</td><td style="width: 364px;"><span style="font-weight: bold;">ls -ltr </span><br />(l=long format, t=sort by modification time,r=reverse order) 最近日期排最下面</td></tr><tr><td>依副檔名排序</td><td style="width: 269px;">dir /oe</td><td style="width: 364px;"><span style="font-weight: bold;">ls -lSX</span><br />(l=long format, SX=sort by eXtension)</td></tr><tr><td>依檔案大小排序</td><td style="width: 269px;">dir /o-s</td><td style="width: 364px;"><span style="font-weight: bold;">ls -lSr</span><br /> (l=long format, S=Sort by size, r=reverse order) 由大到小排</td></tr><tr><td>暫停螢幕</td><td style="width: 269px;">more</td><td style="width: 364px;">Cygwin找不到more指令，有兩個解決方法：<br /><ol><li>把c:\Windows\system32\more.com複製成c:\Cygwin\bin\more.exe</li><li>使用<span style="font-weight: bold;">alias more='less -r'</span></li></ol>less加入-r才能正常顯示中文內容</td></tr></tbody></table><br />另外，為了方便操作，把常用的資料夾在啟動Cygwin時就掛載起來，指令是mount：<br /><br /><span style="font-weight: bold;">mount &quot;C:/Documents and Settings/$USER&quot;  /mydir</span><br /><span style="font-weight: bold;">mount &quot;C:/Documents and Settings/$USER/My Documents&quot;  /mydoc</span><br /><br />mount執行後會出現目錄不存在的警告，忽略即可，掛載點已經建立好了。日後用 cd  /mydoc 就可以直接切換到需要的目錄。<br />解除掛載點的方法是用umount：<br /><br /><span style="font-weight: bold;">umount /mydoc</span><br /><br />掛載表格(mount table)並不是存放在/etc/mtab裡，而是存放在Windows registry HKEY_LOCAL_MACHINE/Software/Cygnus Solutions/cygwin/mounts v2裡。<br /><br />##<br /><br /><br /><br />
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2658683.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2658683.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2658683.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 20 Jan 2007 00:04:04 +0800</pubDate>
</item>
<item>
	<title>[Cygwin] 用c:、d:切換磁碟機目錄</title>
	<description><![CDATA[
			
試了一會，成功的在Cygwin裡模擬cmd.exe(DOS命令提示字元)切換磁碟機的操作，亦即在 $ 裡用 c: 與 d: 切換目前目錄到另一個磁碟機目錄，且直接換到原來磁碟機的目錄。以下是寫在Home目錄裡的 .bashrc 相關內容：export C_PWD=c:/export D_PWD=d:/alias c:='export D_PWD=$PWD;cd $C_PWD'alias d:='export C_PWD=$PWD;cd $D_PWD'##


		]]>
	</description>
	<content:encoded><![CDATA[
			
試了一會，成功的在Cygwin裡模擬cmd.exe(DOS命令提示字元)切換磁碟機的操作，亦即在 $ 裡用 c: 與 d: 切換目前目錄到另一個磁碟機目錄，且直接換到原來磁碟機的目錄。以下是寫在Home目錄裡的 <span style="font-weight: bold;">.bashrc</span> 相關內容：<br /><br /><table border="1" style="width: 100%;"><tbody><tr><td><span style="color: rgb(0, 0, 255);">export C_PWD=c:/</span><br style="color: rgb(0, 0, 255);" /><span style="color: rgb(0, 0, 255);">export D_PWD=d:/</span><br style="color: rgb(0, 0, 255);" /><br style="color: rgb(0, 0, 255);" /><span style="color: rgb(0, 0, 255);">alias c:='export D_PWD=$PWD;cd $C_PWD'</span><br style="color: rgb(0, 0, 255);" /><span style="color: rgb(0, 0, 255);">alias d:='export C_PWD=$PWD;cd $D_PWD'</span><br /></td></tr></tbody></table><br />##<br />


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2656515.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2656515.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2656515.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 19 Jan 2007 00:11:26 +0800</pubDate>
</item>
<item>
	<title>開始使用Cygwin以取代cmd.exe</title>
	<description><![CDATA[
			最近嘗試把命令模式由Windows的cmd.exe轉成Cygwin ˈ/sɪgwɪn/。Cygwin是由Cygnus Solutions公司( []天鵝座) 開發，用以將*nix中常用的工具移植到Windows環境。最主要的原因是：在DOS視窗裡想要處理特定操作時，不知如何著手；Batch太陽春，WSH的VBScript很不熟悉，想要用PowerShell看看，又必須升級到.NET 2.0與Windows 2003 Server SP1，很怕一升級又是一大堆東西出狀況，最後乾脆安裝Cygwin算了。Cygwin的安裝很簡單，透過它的setup.exe做線上安裝，安裝後很快就能看到Linux的提示符號了。原想有些Windows的環境設定可能還要多花時間，沒想到過程還挺順利的：在Cygwin裡能直接執行.bat、.com與.exe檔，以前寫的小程式或常用的工具都能繼續使用系統自動會把Windows裡使用到的磁碟機都掛載好，如 c:、d: 或網路磁碟機 x:、y: 等，用 cd 就能切換到某部磁碟機bash基本功能都具備，因此可以透過其script來做需要的處理了另外，修改Home目錄裡的 .bashrc 以設定環境：序設　　　定說　　　明1alias ls='ls -hF --show-control-chars --color=tty --time-style=iso'加入--show-control-chars才能顯示中文用--time-style=iso把檔案時間格式改成yyyy/mm/dd HH:MM:SS的樣式2alias cls='clear'設定DOS用的清除螢幕指定3alias start='explorer'start是cmd.exe的內部指令，因常用 start . 開啟目前目錄，因此設定用檔案總管來替代4function wd() { &quot;c:/program files/OpenOffice.org 2.1/program/swriter.exe&quot; $*; }還沒找到在Cygwin裡以副檔名直接開啟檔案的方式，先用此方法應急。原本用alias試了很久，但alias無法承接參數，用函數則能正確執行。$ wd d:/doc/TEST.doc ##

		]]>
	</description>
	<content:encoded><![CDATA[
			最近嘗試把命令模式由Windows的cmd.exe轉成<a target="_blank" href="http://cygwin.com"><b>Cygwin</b></a> <span class="IPA" title="Pronunciation in IPA">ˈ/sɪgwɪn/</span>。Cygwin是由Cygnus Solutions公司( [<img src="http://tw.yimg.com/i/tw/dictionary/pic/053.gif" /><img src="http://tw.yimg.com/i/tw/dictionary/pic/044.gif" /><img src="http://tw.yimg.com/i/tw/dictionary/pic/034.gif" /><img src="http://tw.yimg.com/i/tw/dictionary/pic/055.gif" /><img src="http://tw.yimg.com/i/tw/dictionary/pic/047.gif" /><img src="http://tw.yimg.com/i/tw/dictionary/pic/018.gif" /><img src="http://tw.yimg.com/i/tw/dictionary/pic/044.gif" />]天鵝座) 開發，用以將*nix中常用的工具移植到Windows環境。<br /><br />最主要的原因是：在DOS視窗裡想要處理特定操作時，不知如何著手；Batch太陽春，WSH的VBScript很不熟悉，想要用<a target="_blank" href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx">PowerShell</a>看看，又必須升級到.NET 2.0與Windows 2003 Server <span style="font-weight: bold;">SP1</span>，很怕一升級又是一大堆東西出狀況，最後乾脆安裝Cygwin算了。<br /><br />Cygwin的安裝很簡單，透過它的setup.exe做線上安裝，安裝後很快就能看到Linux的提示符號了。原想有些Windows的環境設定可能還要多花時間，沒想到過程還挺順利的：<br /><ul><li>在Cygwin裡能直接執行.bat、.com與.exe檔，以前寫的小程式或常用的工具都能繼續使用</li><li>系統自動會把Windows裡使用到的磁碟機都掛載好，如<span style="font-weight: bold;"> c:</span>、<span style="font-weight: bold;">d: </span>或網路磁碟機 <span style="font-weight: bold;">x:</span>、<span style="font-weight: bold;">y: </span>等，用 cd 就能切換到某部磁碟機</li><li>bash基本功能都具備，因此可以透過其script來做需要的處理了</li></ul>另外，修改Home目錄裡的 .bashrc 以設定環境：<br /><table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 0, 153); width: 100%;"><tbody><tr><td style="width: 48px; text-align: center; color: rgb(255, 255, 153);">序</td><td style="width: 334px; text-align: center; color: rgb(255, 255, 153);">設　　　定</td><td style="width: 553px; text-align: center; color: rgb(255, 255, 153);">說　　　明</td></tr><tr><td style="width: 48px; text-align: center; background-color: rgb(204, 255, 255);">1</td><td style="width: 334px; background-color: rgb(204, 255, 255);">alias ls='ls -hF --show-control-chars --color=tty --time-style=iso'</td><td style="width: 553px; background-color: rgb(204, 255, 255);">加入--show-control-chars才能顯示中文<br />用--time-style=iso把檔案時間格式改成yyyy/mm/dd HH:MM:SS的樣式</td></tr><tr><td style="text-align: center; background-color: rgb(255, 255, 204);">2</td><td style="background-color: rgb(255, 255, 204);">alias cls='clear'</td><td style="background-color: rgb(255, 255, 204);">設定DOS用的清除螢幕指定</td></tr><tr><td style="text-align: center; background-color: rgb(204, 255, 255);">3</td><td style="background-color: rgb(204, 255, 255);">alias start='explorer'</td><td style="background-color: rgb(204, 255, 255);">start是cmd.exe的內部指令，因常用<span style="font-weight: bold;"> start . </span>開啟目前目錄，因此設定用檔案總管來替代</td></tr><tr><td style="text-align: center; background-color: rgb(255, 255, 204);">4</td><td style="background-color: rgb(255, 255, 204);">function wd() { &quot;c:/program files/OpenOffice.org 2.1/program/swriter.exe&quot; $*; }</td><td style="background-color: rgb(255, 255, 204);">還沒找到在Cygwin裡以副檔名直接開啟檔案的方式，先用此方法應急。原本用alias試了很久，但alias無法承接參數，用函數則能正確執行。<br /><br />$ wd d:/doc/TEST.doc </td></tr></tbody></table><br />##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2638866.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2638866.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2638866.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 11 Jan 2007 23:12:43 +0800</pubDate>
</item>
<item>
	<title>[轉貼] 在桌面新增隱藏式快速工具列</title>
	<description><![CDATA[
			
用了Windows那麼久，竟然不知道只要在桌面上把資料夾拖到邊緣位置，就能將之變成新的工具列；還挺方便的。原文：http://mag.udn.com/mag/it/storypage.jsp?f_ART_ID=48477系統改造》在桌面新增隱藏式快速工具列
        
        
        
          ‧密技百樂門 2006/10/05
        
        
	
        
        
          
            
            
            
            電腦用久了，常用的軟體、常開的檔案可能都是那幾個，如果沒設定軟體、檔案的捷徑的話，每次都要到很深很深的資料資料夾去挖，或由開始選單一層一層的找，實在很浪費時間，而且工作起來也沒效率。
        
        
        
					
        
        
          
            電腦用久了，常用的軟體、常開的檔案可能都是那幾個，如果沒設定軟體、檔案的捷徑的話，每次都要到很深很深的資料資料夾去挖，或由開始選單一層一層的找，實在很浪費時間，而且工作起來也沒效率。
&nbsp;
現在，我們不用等到新版Windows Vista上市，就可以自己製作陽春型的快速工具列，雖說是陽春型，不過，使用起來還滿方便的，適合各行各業、學生、老師…等等，讓你用電腦時省時、省力。
&nbsp;
設定方法：
&nbsp;
首先，在你要建立捷徑資料夾或軟體上按一下滑鼠右鍵再點選【傳送到】→【桌面當作捷徑】。







第2步 接著，將你蒐集好的捷徑複製到新建立的「捷徑資料夾」，這個資料夾是用來統一存放軟體、資料夾捷徑用的，請自行新增，也可改成你喜歡的名稱。







蒐集好軟體捷徑後，接著開啟剛剛的「捷徑資料夾」，我們要把這個資料夾設定為桌面的工具列。在該資料夾中的「網址」列右邊的圖示上按住滑鼠左鍵不放，然後再拖曳到桌面的最上方，最後再放開滑鼠左鍵。（一定要拉到螢幕的最頂端才放開滑鼠左鍵唷）







接著，我們可以看到桌面上方多出一個工具列了，如果你覺得工具列中的圖示太小，不好按的話，可以在工具列的任意空白處按一下滑鼠右鍵，再點選【檢視】→【大圖示】，即可將工具列中的圖示變大一點。







接著我們可以在工具列下方的邊緣處調整工具列的佔用高度，如果你希望這工具列可以在不使用時，自動隱藏的話，可以在工具列任意處按一下滑鼠右鍵，再點【自動隱藏】，以後，當滑鼠移開工具列時，便會自動隱藏，移到工具列上方時，便會自動出現。







設定好之後，我們桌面上方便會多出一堆常用的資料夾、圖示與軟體的執行捷徑，方便我們要使用時，直接點選。以後，東西再多也可以透過這類隱藏式工具列來管理、排放，再也不會讓桌面上滿滿的圖示，搞得我們昏天暗地囉！
&nbsp;
【文／密技百樂門】 
##


		]]>
	</description>
	<content:encoded><![CDATA[
			
用了Windows那麼久，竟然不知道只要在桌面上把資料夾拖到邊緣位置，就能將之變成新的工具列；還挺方便的。<br /><br />原文：http://mag.udn.com/mag/it/storypage.jsp?f_ART_ID=48477<br /><br /><table width="100%" cellspacing="3" cellpadding="0" border="0"><tbody><tr><td class="story_title">系統改造》在桌面新增隱藏式快速工具列<br /><br /></td>
        </tr>
        
        <tr>
          <td class="story_author">‧密技百樂門 2006/10/05</td>
        </tr>
        <tr>
	<td background="/_images/mag/it/images/linedot.gif" colspan="6"><img width="4" height="1" src="http://mag.udn.com/images/mag/it/images/linedot.gif" /></td>
        </tr>
        <tr>
          <td valign="top" class="story_summary">
            
            <img hspace="10" border="1" align="left" src="http://mag.udn.com/magimages/30/PROJ_AUTHOR/f_1139552784601.gif" />
            
            電腦用久了，常用的軟體、常開的檔案可能都是那幾個，如果沒設定軟體、檔案的捷徑的話，每次都要到很深很深的資料資料夾去挖，或由開始選單一層一層的找，實在很浪費時間，而且工作起來也沒效率。</td>
        </tr>
        
        <tr>
					<td background="/_images/mag/it/images/linedot.gif" colspan="6"><img width="4" height="1" src="http://mag.udn.com/images/mag/it/images/linedot.gif" /></td>
        </tr>
        <tr>
          <td class="story">
            電腦用久了，常用的軟體、常開的檔案可能都是那幾個，如果沒設定軟體、檔案的捷徑的話，每次都要到很深很深的資料資料夾去挖，或由開始選單一層一層的找，實在很浪費時間，而且工作起來也沒效率。
<p>&nbsp;</p><p>
現在，我們不用等到新版Windows Vista上市，就可以自己製作陽春型的快速工具列，雖說是陽春型，不過，使用起來還滿方便的，適合各行各業、學生、老師…等等，讓你用電腦時省時、省力。
</p><p>&nbsp;</p><p>
<b>設定方法：</b>
</p><p>&nbsp;</p><p>
首先，在你要建立捷徑資料夾或軟體上按一下滑鼠右鍵再點選【傳送到】→【桌面當作捷徑】。
</p><p>
<table width="205" cellspacing="0" cellpadding="1" border="0" align="center">
<tbody><tr><td width="203" bgcolor="#999999" align="center">
<table width="100%" cellspacing="0" cellpadding="7" border="0" bgcolor="#ffffff">
<tbody><tr><td align="center"><img border="0" src="http://mag.udn.com/magimages/30/PROJ_ARTICLE/192_1092/f_48477_1.jpg" /></td></tr>
<tr><td class="story_photo"><br /></td></tr></tbody></table></td></tr></tbody></table>
</p><p>
第2步 接著，將你蒐集好的捷徑複製到新建立的「捷徑資料夾」，這個資料夾是用來統一存放軟體、資料夾捷徑用的，請自行新增，也可改成你喜歡的名稱。
</p><p>
<table width="205" cellspacing="0" cellpadding="1" border="0" align="center">
<tbody><tr><td width="203" bgcolor="#999999" align="center">
<table width="100%" cellspacing="0" cellpadding="7" border="0" bgcolor="#ffffff">
<tbody><tr><td align="center"><img border="0" src="http://mag.udn.com/magimages/30/PROJ_ARTICLE/192_1092/f_48477_2.jpg" /></td></tr>
<tr><td class="story_photo"><br /></td></tr></tbody></table></td></tr></tbody></table>
</p><p>
蒐集好軟體捷徑後，接著開啟剛剛的「捷徑資料夾」，我們要把這個資料夾設定為桌面的工具列。在該資料夾中的「網址」列右邊的圖示上按住滑鼠左鍵不放，然後再拖曳到桌面的最上方，最後再放開滑鼠左鍵。（一定要拉到螢幕的最頂端才放開滑鼠左鍵唷）
</p><p>
<table width="205" cellspacing="0" cellpadding="1" border="0" align="center">
<tbody><tr><td width="203" bgcolor="#999999" align="center">
<table width="100%" cellspacing="0" cellpadding="7" border="0" bgcolor="#ffffff">
<tbody><tr><td align="center"><img border="0" src="http://mag.udn.com/magimages/30/PROJ_ARTICLE/192_1092/f_48477_3.jpg" /></td></tr>
<tr><td class="story_photo"><br /></td></tr></tbody></table></td></tr></tbody></table>
</p><p>
接著，我們可以看到桌面上方多出一個工具列了，如果你覺得工具列中的圖示太小，不好按的話，可以在工具列的任意空白處按一下滑鼠右鍵，再點選【檢視】→【大圖示】，即可將工具列中的圖示變大一點。
</p><p>
<table width="205" cellspacing="0" cellpadding="1" border="0" align="center">
<tbody><tr><td width="203" bgcolor="#999999" align="center">
<table width="100%" cellspacing="0" cellpadding="7" border="0" bgcolor="#ffffff">
<tbody><tr><td align="center"><img border="0" src="http://mag.udn.com/magimages/30/PROJ_ARTICLE/192_1092/f_48477_7.jpg" /></td></tr>
<tr><td class="story_photo"><br /></td></tr></tbody></table></td></tr></tbody></table>
</p><p>
接著我們可以在工具列下方的邊緣處調整工具列的佔用高度，如果你希望這工具列可以在不使用時，自動隱藏的話，可以在工具列任意處按一下滑鼠右鍵，再點【自動隱藏】，以後，當滑鼠移開工具列時，便會自動隱藏，移到工具列上方時，便會自動出現。
</p><p>
<table width="205" cellspacing="0" cellpadding="1" border="0" align="center">
<tbody><tr><td width="203" bgcolor="#999999" align="center">
<table width="100%" cellspacing="0" cellpadding="7" border="0" bgcolor="#ffffff">
<tbody><tr><td align="center"><img border="0" src="http://mag.udn.com/magimages/30/PROJ_ARTICLE/192_1092/f_48477_8.jpg" /></td></tr>
<tr><td class="story_photo"><br /></td></tr></tbody></table></td></tr></tbody></table>
</p><p>
設定好之後，我們桌面上方便會多出一堆常用的資料夾、圖示與軟體的執行捷徑，方便我們要使用時，直接點選。以後，東西再多也可以透過這類隱藏式工具列來管理、排放，再也不會讓桌面上滿滿的圖示，搞得我們昏天暗地囉！
</p><p>&nbsp;</p><p>
【文／密技百樂門】 
</p></td></tr></tbody></table>##<br />


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2248128.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2248128.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2248128.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 06 Oct 2006 21:29:26 +0800</pubDate>
</item>
<item>
	<title>重新排列右鍵功能表(Context Menu)的選項</title>
	<description><![CDATA[
			
這個「重新排列右鍵功能表的選項」的需求或許大多數人都不會這個需要吧。需求產生的原因是經常要操作的Subversion選項顯示在較底部的位置，造成每次要點選時都要多移動一些距離，為了盡量縮短這些距離，導致了這次的測試。下圖中的文件資料夾右鍵功能表順序變更的前、後，就是測試的成果。原有的檔案右鍵功能表往上移動後的檔案右鍵功能表設定檔案右鍵功能表選項顯示順序的步驟是：執行 regedit.exe展開HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers把 TortoiseSVN 名稱改為 1-TortoiseSVN原有的資料夾右鍵功能表往上移動後的資料夾右鍵功能表設定資料夾右鍵功能表選項顯示順序的步驟是：執行 regedit.exe展開HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers把 TortoiseSVN 名稱改為 1-TortoiseSVN這樣就大功告成了。不知是否有方便的工具可以使用?##

		]]>
	</description>
	<content:encoded><![CDATA[
			
這個「<span style="font-weight: bold;">重新排列右鍵功能表的選項</span>」的需求或許大多數人都不會這個需要吧。需求產生的原因是經常要操作的Subversion選項顯示在較底部的位置，造成每次要點選時都要多移動一些距離，為了盡量縮短這些距離，導致了這次的測試。下圖中的文件資料夾右鍵功能表順序變更的前、後，就是測試的成果。<br /><br /><table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 102, 0); width: 100%;"><tbody><tr><td style="text-align: center;"><span style="color: rgb(102, 255, 255);">原有的檔案右鍵功能表</span></td><td style="color: rgb(102, 255, 255); text-align: center;">往上移動後的檔案右鍵功能表</td></tr><tr><td style="background-color: rgb(255, 255, 204);"><img alt="看不到圖則請連http://blog.xuite.net/emisjerry/tech/7283733" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7283540/1.jpg" /></td><td style="background-color: rgb(255, 255, 204);"><img alt="看不到圖則請連http://blog.xuite.net/emisjerry/tech/7283733" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7283540/0.jpg" /></td></tr></tbody></table><br />設定檔案右鍵功能表選項顯示順序的步驟是：<br /><ol><li>執行 regedit.exe</li><li>展開HKEY_CLASSES_ROOT\<span style="font-weight: bold; color: rgb(255, 0, 0);">*</span>\shellex\ContextMenuHandlers</li><li>把 TortoiseSVN 名稱改為<span style="font-weight: bold;"> 1-TortoiseSVN</span></li></ol><table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 102, 0); width: 100%;"><tbody><tr><td style="text-align: center;"><span style="color: rgb(102, 255, 255);">原有的資料夾右鍵功能表</span></td><td style="color: rgb(102, 255, 255); text-align: center;">往上移動後的<span style="color: rgb(102, 255, 255);">資料夾</span>右鍵功能表</td></tr><tr><td style="background-color: rgb(255, 255, 204);"><img alt="看不到圖則請連http://blog.xuite.net/emisjerry/tech/7283733" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7283540/2.jpg" /></td><td style="background-color: rgb(255, 255, 204);"><img alt="看不到圖則請連http://blog.xuite.net/emisjerry/tech/7283733" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7283540/3.jpg" /></td></tr></tbody></table><br />設定資料夾右鍵功能表選項顯示順序的步驟是：<br /><ol><li>執行 regedit.exe</li><li>展開HKEY_CLASSES_ROOT\<span style="font-weight: bold; color: rgb(255, 0, 0);">Directory</span>\shellex\ContextMenuHandlers</li><li>把 TortoiseSVN 名稱改為<span style="font-weight: bold;"> 1-TortoiseSVN</span></li></ol>這樣就大功告成了。不知是否有方便的工具可以使用?<br /><br />##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/1893706.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/1893706.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/1893706.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 16 Jul 2006 18:28:07 +0800</pubDate>
</item>
<item>
	<title>方便切換目錄的指令：PUSHD與POPD</title>
	<description><![CDATA[
			
Scott Hanselman這個老外把網站ComputerZen的首頁圖示做成中文的「善」字，挺有趣的。由他的這兩篇
Prompt(s)
along with PushD and PopD和
A better PROMPT for CMD.EXE or Cool Prompt Environment Variables and a
nice transparent multi-prompt學到了幾個DOS的小技巧。

有時候在DOS視窗裡以 CD 指令切換紀錄目錄，切來切去，當要換回前面切換過的目錄時，若能善用PUSHD與POPD就會方便許多。
PUSHD
  要切換到的目錄，執行結果和CD相同，但會把目
前目錄推入堆疊裡，供POPD取回POPD
  取回Push堆疊裡的最後目錄



C:＼Documents
and Settings＼JERRY＼Application Data&gt;PUSHD &quot;c:＼Program Files&quot;
C:＼Program Files&gt;PUSHD  d:＼
D:＼&gt;PUSHD c:＼windows
C:＼Windows&gt;


(反斜線會被Xuite裁掉，因此改成全形) 
我們變更提示符號字串，就能更方便的了解Push堆疊的階層：

set Prompt=$P$+$G

平常的提示符號是$P$G，新加進去的$+顯示出來的就是堆疊的階層，第幾層就顯示幾個加號。變更後的上述指令如下：




C:＼Documents
and
Settings＼JERRY＼Application Data&gt;PUSHD &quot;c:＼Program Files&quot;
C:＼Program
Files+&gt;pushd d:＼
D:＼++&gt;pushd
c:＼windows
C:＼WINDOWS+++&gt;popd
D:＼++&gt;popd
C:＼Program
Files+&gt;popd
C:＼Documents
and Settings＼JERRY＼Application Data&gt;





最後把PROMPT環境變數
加到系統裡：桌面→我的電腦→內容→進階頁籤→環境變數，新增PROPMT系
統變數，變數值是$P$+$G。

##


		]]>
	</description>
	<content:encoded><![CDATA[
			
Scott Hanselman這個老外把網站ComputerZen的首頁圖示做成中文的「善」字，挺有趣的。由他的這兩篇
<a href="http://www.hanselman.com/blog/PromptsAlongWithPushDAndPopD.aspx">Prompt(s)
along with PushD and PopD</a>和<a href="http://www.hanselman.com/blog/ABetterPROMPTForCMDEXEOrCoolPromptEnvironmentVariablesAndANiceTransparentMultiprompt.aspx">
A better PROMPT for CMD.EXE or Cool Prompt Environment Variables and a
nice transparent multi-prompt</a>學到了幾個DOS的小技巧。<br />
<br />
有時候在DOS視窗裡以 CD 指令切換紀錄目錄，切來切去，當要換回前面切換過的目錄時，若能善用PUSHD與POPD就會方便許多。<br />
<ul><li><span style="font-family: Fixedsys; font-weight: bold;">PUSHD</span>
  要切換到的目錄，執行結果和CD相同，但會把<span style="font-weight: bold;">目
前目錄</span>推入堆疊裡，供POPD取回</li><li><span style="font-family: Fixedsys; font-weight: bold;">POPD</span>
  取回Push堆疊裡的最後目錄</li></ul>
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; width: 100%; color: rgb(51, 255, 51); font-family: Fixedsys;">
<tbody>
<tr>
<td style="background-color: rgb(0, 0, 0); color: rgb(0, 255, 102);">C:＼Documents
and Settings＼JERRY＼Application Data&gt;PUSHD &quot;c:＼Program Files&quot;<br />
C:＼Program Files&gt;PUSHD  d:＼<br />
D:＼&gt;PUSHD c:＼windows<br />
C:＼Windows&gt;</td>
</tr>
</tbody>
</table>(反斜線會被Xuite裁掉，因此改成全形)<br /> <br />
我們變更提示符號字串，就能更方便的了解Push堆疊的階層：<br />
<br />
<span style="font-family: Fixedsys;">set Prompt=$P$+$G</span><br />
<br />
平常的提示符號是$P$G，新加進去的$+顯示出來的就是堆疊的階層，第幾層就顯示幾個加號。變更後的上述指令如下：<br />
<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; width: 100%; color: rgb(51, 255, 51);">
<tbody>
<tr>
<td style="background-color: rgb(0, 0, 0);"><span style="font-family: Fixedsys; color: rgb(0, 255, 51);">C:＼Documents
and
Settings＼JERRY＼Application Data&gt;PUSHD &quot;c:＼Program Files&quot;</span><br style="font-family: Fixedsys; color: rgb(0, 255, 51);" />
<span style="font-family: Fixedsys; color: rgb(0, 255, 51);">C:＼Program
Files+&gt;pushd d:＼</span><br style="font-family: Fixedsys; color: rgb(0, 255, 51);" />
<span style="font-family: Fixedsys; color: rgb(0, 255, 51);">D:＼++&gt;pushd
c:＼windows</span><br style="font-family: Fixedsys; color: rgb(0, 255, 51);" />
<span style="font-family: Fixedsys; color: rgb(0, 255, 51);">C:＼WINDOWS+++&gt;popd</span><br style="font-family: Fixedsys; color: rgb(0, 255, 51);" />
<span style="font-family: Fixedsys; color: rgb(0, 255, 51);">D:＼++&gt;popd</span><br style="font-family: Fixedsys; color: rgb(0, 255, 51);" />
<span style="font-family: Fixedsys; color: rgb(0, 255, 51);">C:＼Program
Files+&gt;popd</span><br style="font-family: Fixedsys; color: rgb(0, 255, 51);" />
<span style="font-family: Fixedsys; color: rgb(0, 255, 51);">C:＼Documents
and Settings＼JERRY＼Application Data&gt;</span><br />
</td>
</tr>
</tbody>
</table>
<br />
最後把<span style="font-weight: bold;">PROMPT</span>環境變數
加到系統裡：桌面→我的電腦→內容→進階頁籤→環境變數，新增PROPMT系
統變數，變數值是<span style="font-weight: bold;">$P$+$G</span>。<br />
<br />
##<br />
<br />

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/1892326.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/1892326.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/1892326.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 16 Jul 2006 10:47:49 +0800</pubDate>
</item>
<item>
	<title>自行新增「右鍵功能表選項」的方法</title>
	<description><![CDATA[
			
由Generate
a File Listing from a Windows Explorer Context Menu看到一個很簡單的擴充檔案總管右鍵功能表的方法，簡述如下。首先把要執行的功能準備好，例如在C:\Windows目錄裡建立一個dirlist.bat，用來產生資料夾裡的檔案清單。C:\Windows\dirlist.batdir /o:gen &gt; filelist.txtnotepad filelist.txt接著是建立新的功能表項目的步驟：由檔案總管的【工具→資料夾選項...→檔案類型頁籤】在「註冊的檔案類型」在開頭位置找到「 (NONE)  資料夾」按右下方的「進階」在編號檔案類型裡用新增把dirlist.bat輸入進去畫面如下： 以上動作完成後，資料夾的右鍵功能表裡就會出現自行建立的選項。但新增後卻無法直接刪除選項的介面，必須用regedit.exe在   HKEY_CLASSES_ROOT\Folder\shell\節點裡找到新增的選項後刪除。##


		]]>
	</description>
	<content:encoded><![CDATA[
			
由<a href="http://www.theeldergeek.com/file_list_generator.htm" target="_blank">Generate
a File Listing from a Windows Explorer Context Menu</a>看到一個很簡單的擴充檔案總管<span style="font-weight: bold;">右鍵功能表</span>的方法，簡述如下。<br /><br />首先把要執行的功能準備好，例如在C:\Windows目錄裡建立一個dirlist.bat，用來產生資料夾裡的檔案清單。<br /><table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(102, 51, 255); width: 90%;"><tbody><tr align="center"><td style="background-color: rgb(255, 255, 204);">C:\Windows\dirlist.bat</td></tr><tr><td style="background-color: rgb(255, 255, 204);">dir /o:gen &gt; filelist.txt<br />notepad filelist.txt</td></tr></tbody></table><br />接著是建立新的功能表項目的步驟：<br /><ol><li>由檔案總管的【工具→資料夾選項...→檔案類型頁籤】</li><li>在「註冊的檔案類型」在開頭位置找到「 (NONE)  資料夾」</li><li>按右下方的「進階」</li><li>在編號檔案類型裡用新增把dirlist.bat輸入進去</li></ol>畫面如下：<br /><img alt="explorer-menu1" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7264599/0.jpg" /> <img alt="explorer-menu2" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7264599/1.jpg" /><br /><br />以上動作完成後，資料夾的右鍵功能表裡就會出現自行建立的選項。<br /><img alt="explorer-menu3" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/7264599/7.jpg" /><br /><br />但新增後卻無法直接刪除選項的介面，必須用regedit.exe在<font size="2" face="Tahoma"><br />   <span style="font-weight: bold;">HKEY_CLASSES_ROOT\Folder\shell\</span><br />節點裡找到新增的選項後刪除。<br /><br />##</font>


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/1889929.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/1889929.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/1889929.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 15 Jul 2006 14:33:49 +0800</pubDate>
</item>
<item>
	<title>微軟新字體：正黑體</title>
	<description><![CDATA[
			
由想讓 Windows 的字型更好看嗎？這篇發現原來在Windows
Vista裡多了一些新字體：微軟繁體正黑體和微軟簡體雅黑體。

由上述網址把字形下載後，Windows除了細明體、標楷體之外，又多了黑體了。

另外在將網頁的字型換成「微軟正黑體」這篇則提到如何透過修改Registry變更IE瀏覽器字形的方法。

##

		]]>
	</description>
	<content:encoded><![CDATA[
			
由<a target="_blank" href="http://mattchen.info/2006/04/27/231.html">想讓 Windows 的字型更好看嗎？</a>這篇發現原來在Windows
Vista裡多了一些新字體：微軟繁體正黑體和微軟簡體雅黑體。<br />
<br />
由上述網址把字形下載後，Windows除了細明體、標楷體之外，又多了黑體了。<br />
<br />
另外在<a target="_blank" href="http://www.vixual.net/wikka/wikka.php?wakka=Archive2006042301">將網頁的字型換成「微軟正黑體」</a>這篇則提到如何透過修改Registry變更IE瀏覽器字形的方法。<br />
<br />
##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/1494909.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/1494909.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/1494909.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sat, 29 Apr 2006 17:51:43 +0800</pubDate>
</item>
<item>
	<title>Windows 2003的關閉群組功能有問題!?</title>
	<description><![CDATA[
			最近在測試Web Server的負載平衡(Load Balance)功能，必須頻繁的開啟許多個IE視窗，測試後為了快速關閉這些佔滿工作列的IE圖示按鈕，於是用群組關閉功能，也就是用Ctrl+左鈕選取要關閉的圖示後，用右鈕功能表裡『關閉群組』來一次關閉點選了的所有視窗。然而在操作過幾次關閉群組後發現新開的IE越來越慢，幾近當機的停頓狀況，剛開始會懷疑是IE的暫存區檔案太多或是被間諜軟體影響到，因此刪除暫存檔或用Anti-Spyware工具掃描就經常執行，耗費許多時間。今天突然注意到發生狀況的規律性：都是在做了關閉群組後才變成異常，此時特別開啟了工作管理員來觀察，竟然發現IEXPLORE.EXE全部都還留在處理程序裡！這應該是表示了關閉群組應該要關掉的程式，操作介面的部份被關閉了，但仍有程式Hang在記憶體裡，逐一用結束處理程序將這些殘留的程式移除後，再開啟IE視窗就恢復正常了。我的結論是：少用關閉群組的功能吧。##
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>最近在測試Web Server的負載平衡(Load Balance)功能，必須頻繁的開啟許多個IE視窗，測試後為了快速關閉這些佔滿工作列的IE圖示按鈕，於是用群組關閉功能，也就是用Ctrl+左鈕選取要關閉的圖示後，用右鈕功能表裡『<strong>關閉群組』</strong>來一次關閉點選了的所有視窗。</p><p>然而在操作過幾次關閉群組後發現新開的IE越來越慢，幾近當機的停頓狀況，剛開始會懷疑是IE的暫存區檔案太多或是被間諜軟體影響到，因此刪除暫存檔或用Anti-Spyware工具掃描就經常執行，耗費許多時間。</p><p>今天突然注意到發生狀況的規律性：都是在做了關閉群組後才變成異常，此時特別開啟了工作管理員來觀察，竟然發現IEXPLORE.EXE全部都還留在處理程序裡！這應該是表示了關閉群組應該要關掉的程式，操作介面的部份被關閉了，但仍有程式Hang在記憶體裡，逐一用<strong>結束處理程序</strong>將這些殘留的程式移除後，再開啟IE視窗就恢復正常了。</p><p>我的結論是：少用關閉群組的功能吧。</p><p>##</p>
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/1163964.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/1163964.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/1163964.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 23 Feb 2006 22:05:40 +0800</pubDate>
</item>
<item>
	<title>Widnows登錄壞掉了</title>
	<description><![CDATA[
			不知為何，在移除PC-AnyWhere 10後開機啟動時出現下列錯誤而無法進入Windows:Windows 2003無法啟動，因為下列檔案遺失或損毀: \WINDOWS\SYSTEM32\CONFIG\SYSTEM 還好由如何修復造成Windows XP無法啟動的損毀登錄查到解決步驟，因此依指示操作，最後雖然只能做完成第一部份，但大部份的環境都回復了，只有部份驅動程式必須重裝，算是不幸中的大幸...。##
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>不知為何，在移除PC-AnyWhere 10後開機啟動時出現下列錯誤而無法進入Windows:</p><p>Windows 2003無法啟動，因為下列檔案遺失或損毀: \WINDOWS\SYSTEM32\CONFIG\SYSTEM</p><p> </p><p>還好由<a href="http://support.microsoft.com/default.aspx?scid=kb;zh-tw;307545" target="_blank">如何修復造成Windows XP無法啟動的損毀登錄</a>查到解決步驟，因此依指示操作，最後雖然只能做完成第一部份，但大部份的環境都回復了，只有部份驅動程式必須重裝，算是不幸中的大幸...。</p><p>##</p>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/1077784.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/1077784.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 03 Feb 2006 13:33:34 +0800</pubDate>
</item>
<item>
	<title>DOS提示字元的快速編輯選項</title>
	<description><![CDATA[
			Windows 2000以後的「DOS提示字元」提供了快速標示與複製、貼上的功能；用右鈕拖拉不放到特定位置後，按右鈕則會將標示內容複製到剪貼簿，在DOS下再按第二次右鈕則可以將剪貼簿內的內容貼上游標處。



但自行複製「DOS提示字元」到桌面或資料夾時，上述右鈕複製與貼上功能卻無法成功。測試了半天，原來是編輯選項內的快速編輯模式要勾選才行，打勾後就能正常操作了。



##

		]]>
	</description>
	<content:encoded><![CDATA[
			Windows 2000以後的「DOS提示字元」提供了快速標示與複製、貼上的功能；用右鈕拖拉不放到特定位置後，按右鈕則會將標示內容複製到剪貼簿，在DOS下再按第二次右鈕則可以將剪貼簿內的內容貼上游標處。<br />
<br />
<img src="http://blog.xuite.net/_users/b3/ac/11893557/blog_10351/txt/4054997/4054997_1.gif" alt="DOS copy" style="width: 672px; height: 203px;" /><br />
<br />
但自行複製「DOS提示字元」到桌面或資料夾時，上述右鈕複製與貼上功能卻無法成功。測試了半天，原來是編輯選項內的快速編輯模式要勾選才行，打勾後就能正常操作了。<br />
<br />
<img src="http://blog.xuite.net/_users/b3/ac/11893557/blog_10351/txt/4054997/4054997_0.gif" alt="DOS Option" style="width: 496px; height: 539px;" /><br />
<br />
##<br />

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/536602.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/536602.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/536602.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 29 Sep 2005 21:41:37 +0800</pubDate>
</item>
<item>
	<title>[Windows] 部署相同目錄結構檔案的簡便方法</title>
	<description><![CDATA[
			我們在做程式開發時，為了測試方便一般都會在自己的工作電腦上建立系統運行的測試環境，例如系統運行的Web Server、Application Server或Database Server等，這樣便可以在自己電腦上做過測試，再把撰寫好的原始檔案複製到正式主機上。我以Web-based的JSP程式來做說明：本地端的Web應用程式目錄結構：C:\Tomcat\webapps\MyApp\WEB-INF\jsp\accounting\*.jsp正式主機用網路磁碟機連線成 M:，則在正式主機上有同樣的目錄結構：M:\Tomcat\webapps\MyApp\WEB-INF\jsp\accounting\*.jsp本地端電腦與主機端電腦擁有一模一樣的目錄結構，部署程式到主機的（簡化版的）步驟會是：在本地端的開發環境撰寫、修改程式啟動在本地端運行的全部Server程式 (Application Server＋Database Server)，開始測試（JSP就是利用瀏覽器來測試）測試有問題便回到步驟１重新再來一次累積正式程式到一定比例後，將可更新的程式複製到主機我們今天要解決的是步驟４：將測試好的程式部署到正式環境的程序。在部署時我們遇到的前提是：不希望整個目錄更新，而希望只更新確實測試完成的程式；因為系統開發會是漸進式的，在更新某些程式時，同時也有別的程式正在開始撰寫或修改，因此若整個目錄更新的話勢必造成問題透過版本控制系統當然可以將部署程序做到更好的管制，但同時需要更嚴密的專案控管流程，小系統用之有時會有殺雞用牛刀的感覺（要看系統狀況而定），因此我們假設使用手動部署的方式來進行為了簡化複製檔案的動作，同時用最簡單的方式來處理，因此撰寫了下列批次檔 dup.bat 來處理。使用方法：dup  要複製的檔名  複製到那個磁碟機使用範例：dup  index.jsp  M:   （把C:的index.jsp複製到M:同一目錄）使用說明：dup.bat需要兩個參數：％１、％２01 讓執行過程內容不顯示到螢幕02, 03 若未輸入參數則跳至說明標籤處04 把參數2指派給_TARGET變數，原因是環境變數的子字串操作無法套用到參數05 取_TARGET變數(即目的磁碟機代號)的第2字元06 若第2字元不是冒號，表示輸入錯誤，則跳到說明標籤處07 用％CD%取出目前目錄，由磁碟機代號取，如C:\WINDOWS取成 \WINDOWS11 將參數１的檔案複製到指定目錄dup.bat 內容如下：01 @echo off02 if &quot;%1&quot; == &quot;&quot; goto USAGE03 if &quot;%2&quot; == &quot;&quot; goto USAGE04 set _TARGET=%205 set _TARGET=%_TARGET:~1,1%06 if not &quot;%_TARGET%&quot; == &quot;:&quot; goto USAGE_DRIVE07 set _CURR_DIR=%CD:~2%08 echo copy %1 %2%_CURR_DIR%09 del %2%_CURR_DIR%\%1.bak &gt; nul10 copy %2%_CURR_DIR%\%1 %2%_CURR_DIR%\%1*.bak11 copy %1 %2%_CURR_DIR%12 goto END13 :USAGE14 echo 用法: %0 要複製的檔名 要複製到那個磁碟機(目錄結構相同)15 echo 範例：%0 &quot;c:\windows\notepad.exe&quot; k:16 goto END17 :USAGE_DRIVE18 echo 第2個參數必須為磁碟機代號(含冒號)19 echo 範例：%0 &quot;c:\windows\notepad.exe&quot; k:20 :END21 %222 cd %2%_CURR_DIR%23 dir %2%_CURR_DIR%\%1
		]]>
	</description>
	<content:encoded><![CDATA[
			<p><!--StartFragment -->我們在做程式開發時，為了測試方便一般都會在自己的工作電腦上建立系統運行的測試環境，例如系統運行的Web Server、Application Server或Database Server等，這樣便可以在自己電腦上做過測試，再把撰寫好的原始檔案複製到正式主機上。<br /><br />我以Web-based的JSP程式來做說明：<br /><br />本地端的Web應用程式目錄結構：<br /><br />C:\Tomcat\webapps\MyApp\WEB-INF\jsp\accounting\*.jsp<br /><br />正式主機用網路磁碟機連線成 M:，則在正式主機上有同樣的目錄結構：<br /><br />M:\Tomcat\webapps\MyApp\WEB-INF\jsp\accounting\*.jsp<br /><br />本地端電腦與主機端電腦擁有一模一樣的目錄結構，部署程式到主機的（簡化版的）步驟會是：<br /></p><ol><li>在本地端的開發環境撰寫、修改程式</li><li>啟動在本地端運行的全部Server程式 (Application Server＋Database Server)，開始測試（JSP就是利用瀏覽器來測試）</li><li>測試有問題便回到步驟１重新再來一次</li><li>累積正式程式到一定比例後，將可更新的程式複製到主機</li></ol><p><br />我們今天要解決的是步驟４：將測試好的程式部署到正式環境的程序。在部署時我們遇到的<span style="FONT-WEIGHT: bold">前提</span>是：<br /></p><ul><li>不希望整個目錄更新，而希望只更新確實測試完成的程式；因為系統開發會是漸進式的，在更新某些程式時，同時也有別的程式正在開始撰寫或修改，因此若整個目錄更新的話勢必造成問題</li><li>透過版本控制系統當然可以將部署程序做到更好的管制，但同時需要更嚴密的專案控管流程，小系統用之有時會有殺雞用牛刀的感覺（要看系統狀況而定），因此我們假設使用<span style="FONT-WEIGHT: bold">手動部署</span>的方式來進行</li></ul><p><br />為了簡化複製檔案的動作，同時用最簡單的方式來處理，因此撰寫了下列批次檔<span style="FONT-WEIGHT: bold"> dup.bat </span>來處理。<br /><br />使用方法：<span style="FONT-WEIGHT: bold">dup  要複製的檔名  複製到那個磁碟機</span><br />使用範例：dup  index.jsp  M:   （把C:的index.jsp複製到M:同一目錄）<br />使用說明：dup.bat需要兩個參數：％１、％２<br /><br />01 讓執行過程內容不顯示到螢幕<br />02, 03 若未輸入參數則跳至說明標籤處<br />04 把參數2指派給_TARGET變數，原因是<a href="http://blog.roodo.com/emisjerry/archives/23407.html">環境變數的子字串操作</a>無法套用到參數<br />05 取_TARGET變數(即目的磁碟機代號)的第2字元<br />06 若第2字元不是冒號，表示輸入錯誤，則跳到說明標籤處<br />07 用％CD%取出目前目錄，由磁碟機代號取，如C:\WINDOWS取成 \WINDOWS<br />11 將參數１的檔案複製到指定目錄<br /><br />dup.bat 內容如下：<br /></p><pre>01 @echo off<br />02 if &quot;%1&quot; == &quot;&quot; goto USAGE<br />03 if &quot;%2&quot; == &quot;&quot; goto USAGE<br />04 set _TARGET=%2<br />05 set _TARGET=%_TARGET:~1,1%<br />06 if not &quot;%_TARGET%&quot; == &quot;:&quot; goto USAGE_DRIVE<br />07 set _CURR_DIR=%CD:~2%<br />08 echo copy %1 %2%_CURR_DIR%<br />09 del %2%_CURR_DIR%\%1.bak &gt; nul<br />10 copy %2%_CURR_DIR%\%1 %2%_CURR_DIR%\%1*.bak<br />11 copy %1 %2%_CURR_DIR%<br />12 goto END<br />13 :USAGE<br />14 echo 用法: %0 要複製的檔名 要複製到那個磁碟機(目錄結構相同)<br />15 echo 範例：%0 &quot;c:\windows\notepad.exe&quot; k:<br />16 goto END<br />17 :USAGE_DRIVE<br />18 echo 第2個參數必須為磁碟機代號(含冒號)<br />19 echo 範例：%0 &quot;c:\windows\notepad.exe&quot; k:<br />20 :END<br />21 %2<br />22 cd %2%_CURR_DIR%<br />23 dir %2%_CURR_DIR%\%1</pre><br /><br />
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/40803.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/40803.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/40803.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Tue, 15 Mar 2005 23:43:00 +0800</pubDate>
</item>
<item>
	<title>[Java] jTDS: SQL Server的JDBC驅動程式</title>
	<description><![CDATA[
			
或許是為了SQL Server 2005的即將推出，jTDS終於在今年2005年正式跨入1.0版(2005/02/15推出1.0.2)。SQL Server在台灣用得相當普遍，而我們一直使用的JDBC驅動程式始終都是德國公司I-Net Software的Opta (JDBC 2.0)與Merlia(JDBC 3.0)，使用I-Net的原因是：當時微軟尚未推出其JDBC驅動程式且無成熟的Open Source驅動程式，因此在試用過市場上的商用驅動程式後，最後才確定採用I-Net的程式；微軟對Java的立場始終很微妙，或許是迫於市場壓力，最終不得不推出外購自DataDirect的JDBC驅動程式。有趣的是，支援SQL Server 2005的新版 6.02版JDBC驅動程式換成了I-Net Software的版本(參考：http://www.inetsoftware.de/English/i-net/MSSQL2005.htm)。雖然I-Net的驅動程式穩定、效率佳，但終究需要一筆費用，因此最近開始研究採用Open Source的jTDS 1.0.2之可行性，如果它能取代商用的驅動程式，那就真的太好了。以下是一些彙總。jTDS的類別：InterfacejTDS Implementationjava.sql.Drivernet.sourceforge.jtds.jdbc.Driverjavax.sql.DataSourcenet.sourceforge.jtds.jdbcx.JtdsDataSourcejavax.sql.ConnectionPoolDataSourcenet.sourceforge.jtds.jdbcx.JtdsDataSourcejavax.sql.XADataSourcenet.sourceforge.jtds.jdbcx.JtdsDataSource而它的URL格式是：jdbc:jtds:＜server_type＞://＜server＞[:＜port＞][/＜database＞]     [;＜property＞=＜value＞[;...]]例如：jdbc:jtds:sqlserver://localhost:1433/Northwind;charset=Big5由於TDS支援的資料庫除了SQL Server外，還有Sybase，因此要指定＜server_type＞。 ## 
		]]>
	</description>
	<content:encoded><![CDATA[
			
或許是為了SQL Server 2005的即將推出，<a href="http://jtds.sf.net/">jTDS</a>終於在今年2005年正式跨入1.0版(2005/02/15推出1.0.2)。<br /><br />SQL Server在台灣用得相當普遍，而我們一直使用的JDBC驅動程式始終都是德國公司<a href="http/;//www.inetsoftware.de">I-Net Software</a>的Opta (JDBC 2.0)與Merlia(JDBC 3.0)，使用I-Net的原因是：當時微軟尚未推出其JDBC驅動程式且無成熟的Open Source驅動程式，因此在試用過市場上的商用驅動程式後，最後才確定採用I-Net的程式；微軟對Java的立場始終很微妙，或許是迫於市場壓力，最終不得不推出外購自DataDirect的JDBC驅動程式。<br /><br />有趣的是，支援SQL Server 2005的新版 6.02版JDBC驅動程式換成了I-Net Software的版本(參考：<a href="http://www.inetsoftware.de/English/i-net/MSSQL2005.htm">http://www.inetsoftware.de/English/i-net/MSSQL2005.htm</a>)。<br /><br />雖然I-Net的驅動程式穩定、效率佳，但終究需要一筆費用，因此最近開始研究採用Open Source的jTDS 1.0.2之可行性，如果它能取代商用的驅動程式，那就真的太好了。以下是一些彙總。<br /><br />jTDS的類別：<br /><table cellspacing="1" border="0" bgcolor="#008000" align="center"><thead bgcolor="#c0c0c0"><tr><td style="font-weight: bold; text-align: center;">Interface</td><td style="font-weight: bold; text-align: center;">jTDS Implementation</td></tr></thead><tbody bgcolor="#dddddd"><tr><td>java.sql.Driver</td><td>net.sourceforge.jtds.jdbc.Driver</td></tr><tr><td>javax.sql.DataSource</td><td>net.sourceforge.jtds.jdbcx.JtdsDataSource</td></tr><tr><td>javax.sql.ConnectionPoolDataSource</td><td>net.sourceforge.jtds.jdbcx.JtdsDataSource</td></tr><tr><td>javax.sql.XADataSource</td><td>net.sourceforge.jtds.jdbcx.JtdsDataSource</td></tr></tbody></table><br />而它的URL格式是：<br /><pre>jdbc:jtds:＜server_type＞://＜server＞[:＜port＞][/＜database＞]<br />     [;＜property＞=＜value＞[;...]]<br /></pre>例如：jdbc:jtds:sqlserver://localhost:1433/Northwind;charset=Big5<br />由於TDS支援的資料庫除了SQL Server外，還有Sybase，因此要指定<server_type>＜server_type＞。 <br /><br />##</server_type> 
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/30696.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/30696.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/30696.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 03 Mar 2005 22:56:15 +0800</pubDate>
</item>
<item>
	<title>[Windows] 環境變數的擴充功能</title>
	<description><![CDATA[
			
(注意：文中的百分號在存入時會造成其後文字都被截斷，因此改成全形的，實際使用時必須是半形才對)

問題：用Windows的排程在每天半夜自動備份檔案，備份檔名要帶當日月份與日期，
例如：backup_0223.zip(前提是要完全用批次檔處理，不然自己寫程式當然就解決了）。
解法：
系統日期在DOS下可以用％DATE％環境變數取得
用類似 7z.exe a backup_％DATE％.zip d:\dir1 的方式就完成了
結果並不像想的那麼單純。％DATE％傳回的是類似&quot;2005/02/23 星期三&quot;這樣的文字，
其內的斜線(/)或減號(-)都是用做命令列的選項符號，這樣的組合可能會造成錯誤。
在此最簡單的方法便是用環境變數的擴充功能了：backup_％DATE:~5,2％.zip→取環境
變數DATE的值，由第六碼開始取兩碼(由0開始算，第六碼要用5)，
組合後的檔名是backup_02.zip。
繼續取日期：backup_％DATE:~5,2％％DATE:~8,2％.zip→
結果為backup_0223.zip
先用echo命令測試：echo backup_％DATE:~5,2％％DATE:~8,2％.zip
以上取子字串的位置會依控制台&quot;地區及語言選項&quot;內的日期格式設定而有不同
Windows 2000與XP不清楚是否已有此擴充

這個環境變數的擴充功能幫我們節省許多時間，利用DOS命令 set /? 可以查詢到更多的擴充說明。

環境變數取代功能已經有下列增強:    ％PATH:str1=str2％會將 PATH 環境變數展開，取代每個發現的 &quot;str1&quot; 與 &quot;str2&quot;的擴充結果。&quot;str2&quot; 可以是空白字串，這會從擴充輸出中刪除全部 &quot;str1&quot;。&quot;str1&quot; 可以用星號開始，這將會從擴充輸出的開頭開始，對應到從所有第一個發現含有str1 的項目。您也可以為擴充功能指定子字串。    ％PATH:~10,5％這將會擴充 PATH 環境變數，然後只使用擴充結果的第 11 個(位移 10)字元後的 5 個字元如果長度未指定，將會預設為上次使用的變數值。如果數字(位移或長度)是負數，使用的數字將會是環境變數的長度加上位移或指定長度。    ％PATH:~-10％將抽出 PATH 變數的最後 10 個字元。    ％PATH:~0,-2％將抽出 PATH 變數的最後 2 個字元。最後，系統加入了延遲環境變數展開的支援。在預設狀態下，命令展開會啟用這項支援，但是您可以在 CMD.EXE 用 /V 命令列參數來啟用/停用這個功能。 請參看 CMD /?
##
		]]>
	</description>
	<content:encoded><![CDATA[
			
(注意：文中的百分號在存入時會造成其後文字都被截斷，因此改成全形的，實際使用時必須是半形才對)
<br />
<p>問題：用Windows的排程在每天半夜自動備份檔案，備份檔名要帶當日月份與日期，
例如：backup_0223.zip(前提是要完全用批次檔處理，不然自己寫程式當然就解決了）。
</p><p>解法：<br /></p>
<ol><li>系統日期在DOS下可以用％DATE％環境變數取得
</li><li>用類似 7z.exe a backup_％DATE％.zip d:\dir1 的方式就完成了
</li><li>結果並不像想的那麼單純。％DATE％傳回的是類似&quot;2005/02/23 星期三&quot;這樣的文字，
其內的斜線(/)或減號(-)都是用做命令列的選項符號，這樣的組合可能會造成錯誤。
</li><li>在此最簡單的方法便是用環境變數的擴充功能了：backup_<font color="red"><b>％DATE:~5,2％</b></font>.zip→取環境
變數DATE的值，由第六碼開始取兩碼(由0開始算，第六碼要用5)，
組合後的檔名是backup_02.zip。
</li><li>繼續取日期：backup_<font color="red"><b>％DATE:~5,2％</b></font><font color="GREEN"><b>％DATE:~8,2％</b></font>.zip→
結果為backup_0223.zip
</li><li>先用echo命令測試：echo backup_％DATE:~5,2％％DATE:~8,2％.zip
</li><li>以上取子字串的位置會依控制台&quot;地區及語言選項&quot;內的日期格式設定而有不同
</li><li>Windows 2000與XP不清楚是否已有此擴充
</li></ol>
這個環境變數的擴充功能幫我們節省許多時間，利用DOS命令 set /? 可以查詢到更多的擴充說明。
<hr size="1" color="blue" />
<pre>環境變數取代功能已經有下列增強:<br /><br />    ％PATH:str1=str2％<br /><br />會將 PATH 環境變數展開，取代每個發現的 &quot;str1&quot; 與 &quot;str2&quot;的擴充結果。<br />&quot;str2&quot; 可以是空白字串，這會從擴充輸出中刪除全部 &quot;str1&quot;。&quot;str1&quot; 可以<br />用星號開始，這將會從擴充輸出的開頭開始，對應到從所有第一個發現含有<br />str1 的項目。<br /><br />您也可以為擴充功能指定子字串。<br /><br />    ％PATH:~10,5％<br /><br />這將會擴充 PATH 環境變數，然後只使用擴充結果的第 11 個(位移 10)字元<br />後的 5 個字元如果長度未指定，將會預設為上次使用的變數值。如果數字(位<br />移或長度)是負數，使用的數字將會是環境變數的長度加上位移或指定長度。<br /><br />    ％PATH:~-10％<br /><br />將抽出 PATH 變數的最後 10 個字元。<br /><br />    ％PATH:~0,-2％<br /><br />將抽出 PATH 變數的最後 2 個字元。<br /><br />最後，系統加入了延遲環境變數展開的支援。在預設狀態下，命令展開會啟<br />用這項支援，但是您可以在 CMD.EXE 用 /V 命令列參數來啟用/停用這個功<br />能。 請參看 CMD /?<br /></pre>
<br /><br />##
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/23407.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/23407.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/23407.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Wed, 23 Feb 2005 17:53:37 +0800</pubDate>
</item>
<item>
	<title>[Windows] 快速啟動「服務」、「新增/刪除程式」視窗的方法 　</title>
	<description><![CDATA[
			
(2001/12/05 15:36:58)

每次在Windows 2000中要找到「服務」視窗都要找好久(所以大家才會把服務在desktop上建捷徑),其實我們可以在MS-DOS模式下輸入下列指令直接執行服務：

c:\winnt\system32\services.msc

msc代表Microsoft Console的意思，透過檔案關聯，服務(services)就會被載入了．因為PATH都會有c:\winnt\system32，因此只要輸入services.msc就可以了。 

直接在DOS開啟控制台視窗的最快方法是：control.exe
快速開啟「新增/刪除程式」視窗的方法是在DOS下執行 appwiz.cpl，appwiz應該是Application Wizard的意思，.cpl則表示控制台(Control Panel)。 

main.cpl則是開啟滑鼠內容視窗。
desk.cpl則是開啟螢幕內容視窗。
control desk.cpl,@0,2 這樣也可以開啟螢幕內容視窗，而且直接將頁籤移到螢幕保護程式(Windows 2000用@0,1)。
@數字是表該.CPL檔內第幾個小程式，最後面的數字則是第幾頁籤；以上兩個數字都是由０起算。
例：CONTROL.EXE TIMEDATE.CPL,@0,1 開啟日期/時間小程式的第二個時區頁籤。

參考：http://www.plasma-online.de/english/help/solutions/rundll32.html
 http://www.plasma-online.de/english/help/solutions/rundll32.html
 http://www.robvanderwoude.com/index.html
##        
		]]>
	</description>
	<content:encoded><![CDATA[
			
(2001/12/05 15:36:58)<br />
<br />
每次在Windows 2000中要找到「服務」視窗都要找好久(所以大家才會把服務在desktop上建捷徑),其實我們可以在MS-DOS模式下輸入下列指令直接執行服務：<br />
<br />
c:\winnt\system32\services.msc<br />
<br />
msc代表Microsoft Console的意思，透過檔案關聯，服務(services)就會被載入了．因為PATH都會有c:\winnt\system32，因此只要輸入services.msc就可以了。 <br />
<hr />
直接在DOS開啟控制台視窗的最快方法是：control.exe<br />
快速開啟「新增/刪除程式」視窗的方法是在DOS下執行 <b>appwiz.cpl</b>，appwiz應該是Application Wizard的意思，.cpl則表示控制台(Control Panel)。 
<br />
main.cpl則是開啟滑鼠內容視窗。<br />
desk.cpl則是開啟螢幕內容視窗。<br />
control desk.cpl,@0,2 這樣也可以開啟螢幕內容視窗，而且直接將頁籤移到螢幕保護程式(Windows 2000用@0,1)。<br />
@數字是表該.CPL檔內第幾個小程式，最後面的數字則是第幾頁籤；以上兩個數字都是由０起算。<br />
例：CONTROL.EXE TIMEDATE.CPL,@0,1 開啟日期/時間小程式的第二個時區頁籤。
<br /><br />
參考：<a href="http://www.plasma-online.de/english/help/solutions/rundll32.html">http://www.plasma-online.de/english/help/solutions/rundll32.html</a>
 <a href="http://www.plasma-online.de/english/help/solutions/rundll32.html">http://www.plasma-online.de/english/help/solutions/rundll32.html</a><br />
 <a href="http://www.robvanderwoude.com/index.html">http://www.robvanderwoude.com/index.html</a>
##        
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/18878.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/18878.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/18878.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 17 Feb 2005 23:49:01 +0800</pubDate>
</item>
<item>
	<title>[Windows] DOS (命令提示字元) 的巨集功能</title>
	<description><![CDATA[
			
(2002/11/09 21:34:48 from Forum)

1.有些常用的指令，不想用批次檔的方式來指定，在Windows 2000的命令提示字元可以使用下列方法：

  doskey alias=command

例如: doskey ls=dir/w
以後執行 ls 就等於執行dir/w，此功能就像4DOS中的alias一般.

2.要傳遞所有參數，則再指定$*:
  doskey ed=&quot;c:\winnt\notepad.exe&quot; $*

  c:\&gt;ed c:\temp\test.txt  ==&gt; 就等於 c:\winnt\notepad.exe c:\temp\test.txt

3.要檢視現有的巨集：doskey /macros

4.將現有巨集存入檔案，以供日後再次使用：
  doskey /macros:all &gt; macro.txt

5.使用巨集檔案：doskey /macrofile=macro.txt

 若要讓Windows 2000的命令提示字元(即MS-DOS模式)一執行就啟動已經設定好的巨集, 步驟如下:

   1. 在命令提示字元上按右鈕, 選&quot;內容&quot;
   2. 移到第二個tab sheet(捷徑在目標後面增加 /k macro.bat
   3. 按確定

產生c:\winnt\system32\macro.bat, 內容類似下列文字:
doskey /macrofile=c:\mydoc\macros.txt

macros.txt即為產生好的巨集內容. 以後要增加新的巨集, 只要直接修改macros.txt即可.

 一行指令要執行多個命令, 在DOS下是用 &amp; 或 &amp;&amp;, 在DOSKEY的script檔內要換成 $T 或 $t, 例如:

  ct=cd d: $T d:

##  
		]]>
	</description>
	<content:encoded><![CDATA[
			
(2002/11/09 21:34:48 from Forum)<br />
<br />
1.有些常用的指令，不想用批次檔的方式來指定，在Windows 2000的命令提示字元可以使用下列方法：<br />
<br />
  doskey alias=command<br />
<br />
例如: doskey ls=dir/w<br />
以後執行 ls 就等於執行dir/w，此功能就像4DOS中的alias一般.<br />
<br />
2.要傳遞所有參數，則再指定$*:<br />
  doskey ed=&quot;c:\winnt\notepad.exe&quot; $*<br />
<br />
  c:\&gt;ed c:\temp\test.txt  ==&gt; 就等於 c:\winnt\notepad.exe c:\temp\test.txt<br />
<br />
3.要檢視現有的巨集：doskey /macros<br />
<br />
4.將現有巨集存入檔案，以供日後再次使用：<br />
  doskey /macros:all &gt; macro.txt<br />
<br />
5.使用巨集檔案：doskey /macrofile=macro.txt<br />
<hr />
 若要讓Windows 2000的命令提示字元(即MS-DOS模式)一執行就啟動已經設定好的巨集, 步驟如下:<br />
<br />
   1. 在命令提示字元上按右鈕, 選&quot;內容&quot;<br />
   2. 移到第二個tab sheet(捷徑在目標後面增加 /k macro.bat<br />
   3. 按確定<br />
<br />
產生c:\winnt\system32\macro.bat, 內容類似下列文字:<br />
doskey /macrofile=c:\mydoc\macros.txt<br />
<br />
macros.txt即為產生好的巨集內容. 以後要增加新的巨集, 只要直接修改macros.txt即可.<br />
<hr /><br />
 一行指令要執行多個命令, 在DOS下是用 &amp; 或 &amp;&amp;, 在DOSKEY的script檔內要換成 $T 或 $t, 例如:<br />
<br />
  ct=cd d: $T d:<br />
<br />
##  
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/18666.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/18666.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/18666.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 17 Feb 2005 18:37:21 +0800</pubDate>
</item>
<item>
	<title>[Windows] DOS視窗的設定</title>
	<description><![CDATA[
			
(2002/11/09 13:39:06 from Forum)對於習慣操作命令的人來說, command-line shell會比GUI的操作快許多, 但由於Microsoft的command.exe(Win 9X)或cmd.exe(Win 2K)的便利性與功能性, 都遠較JPSoft的4DOS, 4NT或TakeCommand-32差, 因此一直以來, 4DOS/4NT都是我慣用的命令列工具. 但在我重新安裝了Windows 2000 Server後, 4DOS等在執行一些命令後, 就會發生Internal error, 導致無法使用, 所以只能回頭使用Microsoft的cmd.exe.以下是今天看到的功能, 也許有人會和我有同樣的需求, 因此整理後彙總如下:在DOS視窗中的文字複製與貼上:用左上角功能表的編輯當然也可以，但效率有差，最方便的操作是：左鈕拖到需要位置後，按右鈕複製(按Enter也可以)在DOS視窗的目的地按右鈕奇怪的微軟，為何不能用Ctrl C, Ctrl V呢?打開功能表，調整下列參數值：緩衝區大小：９９９緩衝區數目：５格式設定－螢幕緩衝區大小 高度：２５００確定記得修改其連結之捷徑．檔名或目錄名的自動完成功能：regedit修改HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command PRocessor\CompletionChar將其值改成9 (Tab鍵)以後就可以按Tab鍵來讓DOS自動尋找符合的檔名了．例如目錄內有三個TEST開頭的檔案，先輸入TEST後按Tab鍵，此三個檔案就會輪流出現．輸入過的命令歷史：按F7可以顯示一個視窗出來，讓你挑選複製輸入過命令：按F9會讓你輸入執行過指令的編號，輸入編號後就會將該編號的命令複製出來，按Enter便能執行.## 
		]]>
	</description>
	<content:encoded><![CDATA[
			
(2002/11/09 13:39:06 from Forum)<br /><br />對於習慣操作命令的人來說, command-line shell會比GUI的操作快許多, 但由於Microsoft的command.exe(Win 9X)或cmd.exe(Win 2K)的便利性與功能性, 都遠較JPSoft的4DOS, 4NT或TakeCommand-32差, 因此一直以來, 4DOS/4NT都是我慣用的命令列工具. 但在我重新安裝了Windows 2000 Server後, 4DOS等在執行一些命令後, 就會發生Internal error, 導致無法使用, 所以只能回頭使用Microsoft的cmd.exe.<br /><br />以下是今天看到的功能, 也許有人會和我有同樣的需求, 因此整理後彙總如下:<br /><ol><br /><li>在DOS視窗中的文字複製與貼上:<br />用左上角功能表的編輯當然也可以，但效率有差，最方便的操作是：<br /><ol><br /><li>左鈕拖到需要位置後，按右鈕複製(按Enter也可以)<br /></li><li>在DOS視窗的目的地按右鈕<br /></li><li>奇怪的微軟，為何不能用Ctrl C, Ctrl V呢?<br /></li></ol><br /><br /></li><li>打開功能表，調整下列參數值：<br /><ol><br /><li>緩衝區大小：９９９<br /></li><li>緩衝區數目：５<br /></li><li>格式設定－螢幕緩衝區大小 高度：２５００</li></ol><br />確定記得修改其連結之捷徑．<br /><br /></li><li>檔名或目錄名的自動完成功能：<br /><ol><br /><li>regedit<br /></li><li>修改HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command PRocessor\CompletionChar<br /></li><li>將其值改成9 (Tab鍵)<br /></li></ol><br />以後就可以按Tab鍵來讓DOS自動尋找符合的檔名了．例如目錄內有三個TEST開頭的檔案，先輸入TEST後按Tab鍵，此三個檔案就會輪流出現．<br /><br /></li><li>輸入過的命令歷史：按F7可以顯示一個視窗出來，讓你挑選<br /><br /></li><li>複製輸入過命令：按F9會讓你輸入執行過指令的編號，輸入編號後就會將該編號的命令複製出來，按Enter便能執行.<br /></li></ol><br /><br />## 
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/18664.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/18664.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/18664.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 17 Feb 2005 18:35:30 +0800</pubDate>
</item>
<item>
	<title>[Windows] Net.exe的妙用</title>
	<description><![CDATA[
			
(2001/12/05 15:30:33)

我們最常用NET.exe的是做一個網路磁碟機, 例如：

net use r: \\電腦名稱\資源分享名稱
net use r: \\電腦名稱\資源分享名稱  /user:網域名稱\使用者ID
net use r: /delete  刪除r:

其實net.exe除了use之外，還有許多個子命令可以使用，用net不加參數就可以列出各個命令：

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
      SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

資源分享可以用net share來查看與設定，如：

net share 列出所有分享出去的資源
net share doc /delete 刪除某個資訊
net share doc=d:\doc\mydoc 增加分享資源


另外，透過net start與net stop可以啟動與停止服務(Services)：

net start &quot;MSSQLServer&quot;  啟動SQL Server 2000服務
net stop  &quot;MSSQLServer&quot;  停止SQL Server 2000
##   
		]]>
	</description>
	<content:encoded><![CDATA[
			
(2001/12/05 15:30:33)<br />
<br />
我們最常用NET.exe的是做一個網路磁碟機, 例如：<br />
<ul>
<li>net use r: \\電腦名稱\資源分享名稱<br />
</li><li>net use r: \\電腦名稱\資源分享名稱  /user:網域名稱\使用者ID<br />
</li><li>net use r: /delete  刪除r:<br />
</li></ul><br />
其實net.exe除了use之外，還有許多個子命令可以使用，用net不加參數就可以列出各個命令：<br />
<br />
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |<br />
      HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |<br />
      SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]<br />
<br />
資源分享可以用net share來查看與設定，如：<br />
<ul>
<li>net share 列出所有分享出去的資源<br />
</li><li>net share doc /delete 刪除某個資訊<br />
</li><li>net share doc=d:\doc\mydoc 增加分享資源<br />
</li></ul><br />
<br />
另外，透過net start與net stop可以啟動與停止服務(Services)：<br />
<br />
net start &quot;MSSQLServer&quot;  啟動SQL Server 2000服務<br />
net stop  &quot;MSSQLServer&quot;  停止SQL Server 2000<br />
<br />##   
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/18662.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/18662.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/18662.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Thu, 17 Feb 2005 18:31:26 +0800</pubDate>
</item>
<item>
	<title>sc.exe: 在本機控制遠端電腦的服務</title>
	<description><![CDATA[
			
在本機要直接控制遠端電腦的服務，可以透過MMC的新增主機來達成，但總是要許多個步驟，因此一般都是用VNC直接連到該部電腦來操作。事實上在Windows 2000的Resource Kit中有一個 sc.exe 指令可以輕易的達成此功能(在Windows 2003已內建此指令了，檔案存放於c:\Windows\system32)。

sc 是Service Control的意思，透過sc.exe對Windows的Service Control Manager下命令，不加參數執行會顯示出完整參數說明：

說明:
        SC 是一個用來和服務控制管理員溝通的命令列程式。
使用方法:
        sc 
		]]>
	</description>
	<content:encoded><![CDATA[
			
在本機要直接控制遠端電腦的服務，可以透過MMC的新增主機來達成，但總是要許多個步驟，因此一般都是用VNC直接連到該部電腦來操作。事實上在Windows 2000的Resource Kit中有一個 sc.exe 指令可以輕易的達成此功能(在Windows 2003已內建此指令了，檔案存放於c:\Windows\system32)。<br />
<br />
sc 是Service Control的意思，透過sc.exe對Windows的Service Control Manager下命令，不加參數執行會顯示出完整參數說明：<br />
<br />
說明:<br />
        SC 是一個用來和服務控制管理員溝通的命令列程式。<br />
使用方法:<br />
        sc 
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/15349.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/15349.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/15349.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Fri, 11 Feb 2005 00:59:08 +0800</pubDate>
</item>
<item>
	<title>Windows系統命令與快速鍵</title>
	<description><![CDATA[
			
以下是快速執行Windows的面板(Panel)、元件與應用程式的方法，這些命令可以在DOS模式中執行，或將命令放在建立於桌面的捷徑裡：執行檔： 控制台control.exe音量控制面板sndvol32.exe錄音機sndrec32.exe記事本notepad.exeWordpadwordpad.exe小畫家mspaint.exeInternet ExplorerC:\Program Files\Internet Explorer\iexplore.exe將IE啟動成kiosk狀態(全螢幕)iexplore -k工作管理員(1)taskmgr.exe工作管理員(2)Ctrl Alt Del按鍵工作管理員(3)Ctrl Shift Esc按鍵迅速移到登入使用者目錄cd %userprofile%清理磁碟cleanmgr.exeMS Console(.msc)：
裝置管理員devmgmt.msc電腦管理compmgmt.msc群組原則物件編輯器gpedit.msc磁碟重組工具(1)dfrg.msc磁碟重組工具(2)defrag 事件檢視器eventvwr.msc磁碟管理diskmgmt.msc本機使用者和群組lusrmgr.msc共用資料夾fsmgmt.msc控制面板(.cpl):
系統內容(1)(我的電腦→右鍵→內容)sysdm.cpl系統內容(2)Win Pause/Break自動更新wuaucpl.cpl聲音與音訊裝置 內容mmsys.cpl滑鼠 內容(1)main.cpl滑鼠 內容(2)control mouse鍵盤 內容control keyboard網際網路 內容inetcpl.cpl網路連線 內容ncpa.cpl螢幕 內容desk.cpl電源選項 內容powercfg.cpl新增硬體精靈hdwwiz.cpl新增或移除程式appwiz.cpl地區及語言選項intl.cpl資料夾選項control folders印表機和傳真control printers日期和時間 內容timedate.cplWindows鍵盤快速鍵 C:\WINDOWS\Help\keyshort.chm## 
		]]>
	</description>
	<content:encoded><![CDATA[
			<br />
以下是快速執行Windows的面板(Panel)、元件與應用程式的方法，這些命令可以在DOS模式中執行，或將命令放在建立於桌面的捷徑裡：<br /><br />執行檔： <table cellspacing="0" border="1" bgcolor="LightYellow"><tbody><tr><td>控制台</td><td>control.exe</td></tr><tr><td>音量控制面板</td><td>sndvol32.exe</td></tr><tr><td>錄音機</td><td>sndrec32.exe</td></tr><tr><td>記事本</td><td>notepad.exe</td></tr><tr><td>Wordpad</td><td>wordpad.exe</td></tr><tr><td>小畫家</td><td>mspaint.exe</td></tr><tr><td>Internet Explorer</td><td>C:\Program Files\Internet Explorer\iexplore.exe</td></tr><tr><td>將IE啟動成kiosk狀態(全螢幕)</td><td>iexplore -k</td></tr><tr><td>工作管理員(1)</td><td>taskmgr.exe</td></tr><tr><td>工作管理員(2)</td><td>Ctrl Alt Del按鍵</td></tr><tr><td>工作管理員(3)</td><td>Ctrl Shift Esc按鍵</td></tr><tr><td>迅速移到登入使用者目錄</td><td>cd %userprofile%</td></tr><tr><td>清理磁碟</td><td>cleanmgr.exe</td></tr></tbody></table><br />MS Console(.msc)：<br /><br />
<table cellspacing="0" border="1" bgcolor="LightYellow"><tbody><tr><td>裝置管理員</td><td>devmgmt.msc</td></tr><tr><td>電腦管理</td><td>compmgmt.msc</td></tr><tr><td>群組原則物件編輯器</td><td>gpedit.msc</td></tr><tr><td>磁碟重組工具(1)</td><td>dfrg.msc</td></tr><tr><td>磁碟重組工具(2)</td><td>defrag <switches><driveletter /></switches></td></tr><tr><td>事件檢視器</td><td>eventvwr.msc</td></tr><tr><td>磁碟管理</td><td>diskmgmt.msc</td></tr><tr><td>本機使用者和群組</td><td>lusrmgr.msc</td></tr><tr><td>共用資料夾</td><td>fsmgmt.msc</td></tr></tbody></table><br />控制面板(.cpl):<br /><br />
<table cellspacing="0" border="1" bgcolor="LightYellow"><tbody><tr><td>系統內容(1)(我的電腦→右鍵→內容)</td><td>sysdm.cpl</td></tr><tr><td>系統內容(2)</td><td>Win Pause/Break</td></tr><tr><td>自動更新</td><td>wuaucpl.cpl</td></tr><tr><td>聲音與音訊裝置 內容</td><td>mmsys.cpl</td></tr><tr><td>滑鼠 內容(1)</td><td>main.cpl</td></tr><tr><td>滑鼠 內容(2)</td><td>control mouse</td></tr><tr><td>鍵盤 內容</td><td>control keyboard</td></tr><tr><td>網際網路 內容</td><td>inetcpl.cpl</td></tr><tr><td>網路連線 內容</td><td>ncpa.cpl</td></tr><tr><td>螢幕 內容</td><td>desk.cpl</td></tr><tr><td>電源選項 內容</td><td>powercfg.cpl</td></tr><tr><td>新增硬體精靈</td><td>hdwwiz.cpl</td></tr><tr><td>新增或移除程式</td><td>appwiz.cpl</td></tr><tr><td>地區及語言選項</td><td>intl.cpl</td></tr><tr><td>資料夾選項</td><td>control folders</td></tr><tr><td>印表機和傳真</td><td>control printers</td></tr><tr><td>日期和時間 內容</td><td>timedate.cpl</td></tr></tbody></table><br /><br />Windows鍵盤快速鍵 C:\WINDOWS\Help\keyshort.chm<br /><br />## 
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/14027.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/14027.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/14027.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Mon, 07 Feb 2005 03:06:36 +0800</pubDate>
</item>
<item>
	<title>自己當倉頡：打造自己的輸入法</title>
	<description><![CDATA[
			
最近侯捷大師公布了他使用Windows 2000的通用輸入法的一些步驟與技巧，令我興起嘗試自行仿造鯨魚輸入法規則來建立自己輸入法的念頭，目標當然是設置更符合自己使用習慣的輸入法，進而能在寫文章時有更高的產能。詳見PDF文件的說明。(用FireFox直接讀取PDF時出現錯誤，您可以另存新檔後再檢視或請改用IE)
		]]>
	</description>
	<content:encoded><![CDATA[
			<br />
<span><p><font size="2"><span style="font-family: 新細明體;">最近<a href="http://www.jjhou.com/">侯捷大師</a>公布了他使用</span><span lang="EN-US">Windows 2000</span><span style="font-family: 新細明體;">的通用輸入法的一些步驟與技巧，令我興起嘗試自行仿造鯨魚輸入法規則來建立自己輸入法的念頭，目標當然是設置更符合自己使用習慣的輸入法，進而能在寫文章時有更高的產能。</span></font></p><p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><font size="2"><span style="font-family: 新細明體;"></span></font></p><p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><font size="2"><span style="font-family: 新細明體;">詳見<a href="http://blog.roodo.com/emisjerry/9802543c.pdf">PDF文件</a>的說明。<br /></span></font></p><p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><font size="2"><span style="font-family: 新細明體;"><br />(用FireFox直接讀取PDF時出現錯誤，您可以另存新檔後再檢視或請改用IE)</span></font></p></span>
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/13795.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/13795.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/13795.html</guid>
	<category>作業系統備忘</category>
	<pubDate>Sun, 06 Feb 2005 12:44:12 +0800</pubDate>
</item>
</channel>
</rss>