<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>CMD on Lin's Blog</title><link>http://coder.tw/tags/cmd/</link><description>Recent content in CMD on Lin's Blog</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Tue, 01 Feb 2011 18:00:25 +0000</lastBuildDate><atom:link href="http://coder.tw/tags/cmd/index.xml" rel="self" type="application/rss+xml"/><item><title>如何檢查網址的DNS是否設定成功？</title><link>http://coder.tw/posts/check-dns-propagation/</link><pubDate>Tue, 01 Feb 2011 18:00:25 +0000</pubDate><guid>http://coder.tw/posts/check-dns-propagation/</guid><description>&lt;p style="text-align: center;"&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/01/2011-01-30_163607.jpg"&gt;&lt;img class="size-large wp-image-4567 aligncenter" title="2011-01-30_163607" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/01/2011-01-30_163607-520x339.jpg" alt="" width="520" height="339" /&gt;&lt;/a&gt;&lt;/p&gt;
有在架網站的人應該很常設定網址對應DNS吧,也都知道DNS設定完之後要12～24小時才會正式對應完成,這是因為各家ISP業者需要清除DNS快取的關係,因為DNS對應完之後要等一段時間才能對應成功,不是立即的,所以今天要跟各位介紹一條指令,可以幫你檢查指定的網域是否對應到正確的IP了</description></item><item><title>【C++】用CMD傳送檔案給主控台應用程式以及傳回資料</title><link>http://coder.tw/posts/c-cmd-send-file-to-console-app-2/</link><pubDate>Sat, 04 Dec 2010 10:00:16 +0000</pubDate><guid>http://coder.tw/posts/c-cmd-send-file-to-console-app-2/</guid><description>&lt;p style="text-align: center;"&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2010/11/2010-11-26_232836.jpg"&gt;&lt;img class="size-large wp-image-4097 aligncenter" title="2010-11-26_232836" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2010/11/2010-11-26_232836-520x365.jpg" alt="" width="520" height="365" /&gt;&lt;/a&gt;&lt;/p&gt;
其實在C++裡面除了單純的使用fopen來讀取檔案之外,還有另外一種方法也可以讀取檔案,而且實作起來比fopen簡單很多,那就是利用cmd來餵檔案給C++程式,舉例來講現在有一個程式叫做test.exe,還有一個txt檔叫做x.txt,然後我要讓test.exe讀取x.txt的資料並顯示出來,則我開啟CMD,然後再裡面輸入 &lt;em&gt;&lt;strong&gt;test.exe&amp;lt;x.txt&lt;/strong&gt;&lt;/em&gt; 就可以讀取並顯示出x.txt的內容了,下面文章要教大家的就是這種讀取檔案的方式,另外感謝網友滄海教會我這種用法</description></item><item><title>在.NET程式裡面要如何取用Windows的環境變數(系統變數) - 以VB.Net作範例</title><link>http://coder.tw/posts/net-windows-environment-variables-vb-net-2/</link><pubDate>Sun, 07 Nov 2010 15:06:15 +0000</pubDate><guid>http://coder.tw/posts/net-windows-environment-variables-vb-net-2/</guid><description>&lt;p style="text-align: center;"&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2010/11/2010-11-07_144258.jpg"&gt;&lt;img class="size-full wp-image-3943 aligncenter" title="2010-11-07_144258" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2010/11/2010-11-07_144258.jpg" alt="" width="394" height="406" /&gt;&lt;/a&gt;&lt;/p&gt;
有寫過CMD的人都知道環境變數這個東西,他可以讓你很方便的獲得一些每一台電腦都不一樣的訊息,例如使用者名稱,每一台電腦都不相同,這時候就可以使用環境變數來取得,只不過在cmd裡要取用環境變數很簡單,只要用%環境變數名稱%的方式就能取用,但是在.NET程式中沒有這麼簡單,需要使用到Environ函式
&lt;h2&gt;</description></item></channel></rss>